Loading...
 

Define

Define

Define(procedureName)
From already known (elementary and self-defined) instructions a new instruction(procedure) is formed with Define, which is then used with the name given as operand.
When the statement defined here is called, the sequence of statements immediately following Define and ending with ; is executed.
Procedures are inherited and can be exported for calling from other modules - see Calling Macros/Procedures.

Just as for variables, each module also has its own namespace for procedures. An exception is the module with the name GLOBAL. A procedure defined there can be called within any module as long as a statement with the same name is not defined locally.

Note: Recursive definitions are allowed(example).