Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation for BAIN Wizards
Documents two previously undocumented functions, one constant and two operators. On top of that, it also adds or improves many examples and rewrites a few parts of the documentation significantly. Under #446. Ugly, squashed notes follow: Minor improvements to EditINI docs Added types, some formatting Added docs for DisableINILine Add docs for EndExec Can't be manually called, but should still have documentation in case someone stumbles over it in error messages / code / logs / whatever one day. Mathematical operators: rewrite section Adds explanations and actual examples. Especially necessary since two of the operators (+ and *) are overloaded for strings, but no documentation existed of what e.g. 2 * "foo" or "foo" + "bar" did. Compound assignment: Improve docs Actually mentions the sementaics of each of them now. Swap order of Mathematical operators and Assignment operators The compound assignment operators should probably only be introduced after the mathematical ones, since that will make understanding them much easier for someone who is new to programming. Add docs for SubPackages constant BAIN actually defines three constants: True, False and SubPackages. Add docs for increment and decrement operators Improve example for 'in' operator Add example for dot operator Improve indexing section Split it into indexing and slicing, since they're separate terms. Slicing is an extension of indexing, but we should still mention them separately. Show actual version examples for GE and WB
- Loading branch information
Showing
1 changed file
with
115 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters