Default array base index
- From: Scott Burson <FSet.SLB@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 11:20:59 -0800 (PST)
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
.
- Follow-Ups:
- Re: Default array base index
- From: Adam Beneschan
- Re: Default array base index
- From: (see below)
- Re: Default array base index
- From: Dmitry A. Kazakov
- Re: Default array base index
- Prev by Date: Re: Compilation without implementation source
- Next by Date: Re: Default array base index
- Previous by thread: [anouncement] MingGW release for the GNU Ada Project
- Next by thread: Re: Default array base index
- Index(es):
Relevant Pages
|