An array object is a composite object consisting of components that have the same subtype. The name for a component of an array uses one or more index values belonging to specified discrete types. The value of an array object is a composite value consisting of the values of its components.
Examples of type declarations with unconstrained array definitions:
type VECTOR is array(INTEGER range <>) of REAL; type MATRIX is array(INTEGER range <>, INTEGER range <>) of REAL; type BIT_VECTOR is array(INTEGER range <>) of BOOLEAN; type ROMAN is array(POSITIVE range <>) of ROMAN_DIGIT;
Examples of type declarations with constrained array definitions:
type TABLE is array(1 .. 10) of INTEGER; type SCHEDULE is array(DAY) of BOOLEAN; type LINE is array(1 .. MAX_LINE_SIZE) of CHARACTER;
Examples of object declarations with constrained array definitions:
GRID : array(1 .. 80, 1 .. 100) of BOOLEAN; MIX : array(COLOR range RED .. GREEN) of BOOLEAN; PAGE : array(1 .. 50) of LINE; -- an array of arrays