(2)
formal_array_type_definition ::= array_type_definition
(10)
-- given the generic package
(11)
generic
type Item is private;
type Index is (<>);
type Vector is array (Index range <>) of Item;
type Table is array (Index) of Item;
package P is
...
end P;
(12)
-- and the types
(13)
type Mix is array (Color range <>) of Boolean;
type Option is array (Color) of Boolean;
(14)
-- then Mix can match Vector and Option can match Table
(15)
package R is new P(Item => Boolean, Index => Color,
Vector => Mix, Table => Option);
(16)
-- Note that Mix cannot match Table and Option cannot match Vector
-- Email comments, additions, corrections, gripes, kudos, etc. to: