Ada - How Can I Get the 'First' and 'Last' Attributes of a Two-Dimensional Array?

Viewed 152

Let's say I have declared a type for a two-dimensional array and a variable of that type:

type Array2D is array(Positive range <>, Positive range <>) of Integer;
array : Array2D(1 .. 7, 1 .. 8);

The value of array'First is now 1, and the value of array'Last is now 7. How would I go about accessing the 'First' and 'Last' attributes of the second dimension of the array?

1 Answers
Related