|
| Previous: 2.4.1 Atomic Variables | TOC | Index | Back | Next: 2.4.3 Vectors |
Constants are variables which exist only at compile time (so-called compile time variables). Instead of an automatically assigned address, they are initialized with an explicitly specified value when they are declared. Since they are compile time entities, the values of constants may not change at run time. Any number of constants may be declared in a single CONST statement:
CONST READ=1, WRITE=2, RDWR=READ|WRITE;
Each constant name must be followed by an equal sign (=) and a constant expression which evaluates to the value of the constant. Constant expressions will be explained in a later section.
Constants may only occur in righthand side expressions, where they evaluate to their values.
| Previous: 2.4.1 Atomic Variables | TOC | Index | Back | Next: 2.4.3 Vectors |