2.6  Declare Micro

A Micro declares an untyped constant value. An expession is declared that is evaluated into a constant value. Micros can be declared Local within procedures, Global within a class, or as a field within a structure.

A reference to the Micro name substitutes the resulting constant value in an expression. It's type is then determined within the context of the expression where it is used. Additionally Micro expressions can contain references to other Micros.

Operators in a Micro expression can either be strings or integers. Real numeric operators are not permitted. Real constants can only be singularly assigned to a Micro.


Quoted text can be interpreted either as a string or an integer value. Consider the case where a Micro is simply assigned to a quoted value.


When using a numeric value in a Micro it's type is not determined until it is referenced in an expression. However if a Micro is assigned to an expression using operators or functions, the type of the operator or function needs to be determined. We know the operands of an append operator ('!') are strings. When the type of a numeric operator is unknown then a Cell type is used implicitly.

Declaration_Statement

Declare Macro