Go to the first, previous, next, last section, table of contents.

Constants

CONST <identifier> [ ":" <type> ] "=" <constant expression> ";"

Constant declarations are used to give names to values that can be computed at compile time. Here are some examples:

CONST
  MaxValue: INTEGER = 5 * (25 - 3);       (* INTEGER *)
  MinValue = 2;                           (* INTEGER *)
  RangeValue = MaxValue - MinValue + 1;   (* INTEGER *)
  Name = "Arnie Shoestring";              (* TEXT *)
  Caps = SET OF CHARACTER{'A'..'Z'};    (* SET OF CHARACTER *)


Go to the first, previous, next, last section, table of contents.