[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In type definitions:
array [index type] of element type |
array [index type, ..., index type] of element type |
In parameter list declarations:
array of element type |
The reserved word `array' is used to define an array type.
@@!!!! arrays in parameter lists
Array types are defined in ISO 7185 Pascal.
program ArrayDemo; type IntArray = array [1 .. 20] of Integer; WeekDayChars = array [(Mon, Tue, Wed, Thu, Fri, Sat, Sun)] of Char; Foo = array [0 .. 9, 'a' .. 'z', (Baz, Glork1, Fred)] of Real; TwoDimIntArray = array [1 .. 10] of IntArray; { is equivalent to: } TwoDimIntArray2 = array [1 .. 10, 1 .. 20] of Integer; |
section 8.2.10.3 Array Types, section 9.109 High, section 9.147 Low