Default array base index



Hi,

I just came across this Wikipedia page:

http://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28array%29

which claims that the default base index for arrays in Ada is 1. It
has been over 15 years since I have written any Ada, so my memory is
fuzzy, but what I recall is that there actually is no default: the
base index must always be specified explicitly when the array is
declared. However, it does appear that Ada culture leans toward the
use of 1 as a default (for example, the language numbers the
dimensions of the array from 1 in attribute expressions).

Do you agree?

-- Scott
.



Relevant Pages