Re: Default array base index
- From: Scott Burson <FSet.SLB@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 20:29:19 -0800 (PST)
On Jan 27, 11:36 am, "Dmitry A. Kazakov" <mail...@xxxxxxxxxxxxxxxxx>
wrote:
Actually both statements are wrong. As an example consider:
Foo : array (Character) of Boo;
Here the base index is neither specified nor 1. It is NUL (character).
Hmm, I would say it is specified explicitly but indirectly, via the
definition of the base type.
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).
Maybe, when index is a signed integer type. But with modular integer types
0 as the lower bound looks quite natural. And for enumeration types the
issue makes no sense anyway.
Okay.
Thanks for the reply.
-- Scott
.
- References:
- Default array base index
- From: Scott Burson
- Re: Default array base index
- From: Dmitry A. Kazakov
- Default array base index
- Prev by Date: Re: Default array base index
- Next by Date: Re: Compilation without implementation source
- Previous by thread: Re: Default array base index
- Next by thread: Re: Default array base index
- Index(es):
Relevant Pages
|