I want to know if it is possible to initialise this array:
Type Some is array (1..5) of Integer;
SomeArray : Some := ( 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5 );
In some different way, like this:
SomeArray : Some := ( others => n );
Is it possible?
Except for the fact that “Some” is now a reserved word in Ada 2012, you can initialize that kind of array exactly as you describe. E.g.: