t3x.org / t3x / t3x-manual / 242.html
 
T3X - A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
 
Previous:
2.4.1 Atomic Variables
TOC | Index | Back Next:
2.4.3 Vectors

2.4.2 Constants

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