Ada Programming/Attributes/'First

Description
, where  is any scalar subtype (for example integer, enumerated, real), is an attribute that represents the first value (lower bound) in the range of.

, where  is an array, denotes the first index value. For more-dimensional arrays,  denotes the first index value of the Nth dimension (N must be static).

Example
My_Enum (Enum1, Enum2, Enum3); My_Int   -1 .. 5; ...  (My_Enum'First = Enum1); (My_Int'First = -1); (My_Int'First =  0);

Wikibook

 * Ada Programming
 * Ada Programming/Attributes

Ada Reference Manual


|First