Index: class.doc ================================================================== --- class.doc +++ class.doc @@ -41,10 +41,11 @@ ' Key code : Label % Local variable # User message ! User sound + & User function Comments are also allowed; these start with a semicolon (outside of a string literal) and end at the next line break. @@ -220,16 +221,23 @@ (@ Array ) Define a global variable whose value is a reference to a new array, with the specified dimensions. The maximum number of rows is 64, and the maximum number of columns is 1024, and the maximum number of cells in - all arrays in total is 65534. + all arrays in total is 65534. All elements are initialized to zero when + the level starts. ( ) Defines a default message code for all classes which do not specify their own code for this message. +(& ) + Define a user-defined function. User-defined functions may take any + number of inputs from the stack and leave any number of outputs on the + stack, but may not access user-defined local variables. (It may still + access standard local variables, and all global variables, though.) + === Class definitions === Within a class definition, the following definitions can be used. See also the section about variables; many of these definitions are used to specify @@ -909,10 +917,24 @@ Many instructions are state-changing instructions; these instructions are marked with ** in the summary line. Such instructions are not allowed to be used on the same turn as the IgnoreKey instruction. +