Previous: Pointer Dereference To the Table of Content Next: String Types

- 2.2.6.9 -
TMT Pascal Language Description
Pascal Language Structure
Types

Array Types

Array types contain a sequence of components of a different type. Each component is referenced by an index which also has a specific type. Arrays are defined as follows:
array [Ordinalindex [,OrdinalIndex]] of Arraytype;
where OrdinalIndex is one of the following ordinal types: integer, char, enumeration, Boolean, or subrange. Arraytype can be of any type, including another array type. The following are examples of array types:
  array [Boolean] of Char;
  array [Char] of Integer;
  array [1..255] of Double;
Subscripts are used to refer to a component of an array. Subscripting an array is specified as follows:
  Arrayname [expression [,expression]];
where expression is of the same type as the index. Expression must also lie within the range of the index. A runtime error is generated if expression lies outside the index range and range checking is turned on, {$R+}.

See also
{$R} - Range-Checking Switch


Previous: Pointer Dereference To the Table of Content Next: String Types
Pointer Dereference Table of Content String Types

- 2.2.6.9 -