Arrays

Free Pascal supports arrays as in Turbo Pascal, multi-dimensional arrays and packed arrays are also supported:

_________________________________________________________________________________________________________ Array types
-- array type -|---------array -[ -|ordinal type--] -of -type ----------
            -packed--          -----, ------
___________________________________________________________________

The following is a valid array declaration:

 Type
   RealArray = Array [1..100] of Real;
As in Turbo Pascal, if the array component type is in itself an array, it is possible to combine the two arrays into one multi-dimensional array. The following declaration:
 Type
    APoints = array[1..100] of Array[1..3] of Real;
is equivalent to the following declaration:
 Type
    APoints = array[1..100,1..3] of Real;
The functions High (511) and Low (531) return the high and low bounds of the leftmost index type of the array. In the above case, this would be 100 and 1.