From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: How to extract range from array
Date: 20 Mar 2006 10:31:32 -0500
Date: 2006-03-20T10:31:32-05:00 [thread overview]
Message-ID: <wccfyldku97.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: dvm9rt$i6a$1@sunnews.cern.ch
Maciej Sobczak <no.spam@no.spam.com> writes:
> What am I missing?
type T is array(1..10) of ...;
means the same as:
type T is array(Integer range 1..10) of ...;
which is a kludge. I always write the latter (in the rare case where I
want Integer). But you can say:
type Index is range 1..Integer'Last + 1;
type T is array(Index) of ...;
X: T;
presuming System.Max_Int > Integer'Last,
and presuming you have enough memory to store the array.
- Bob
next prev parent reply other threads:[~2006-03-20 15:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 11:23 How to extract range from array Maciej Sobczak
2006-03-17 12:29 ` Ed Falis
2006-03-17 15:12 ` Martin Krischik
2006-03-20 10:04 ` Maciej Sobczak
2006-03-20 13:14 ` Maciej Sobczak
2006-03-20 13:58 ` Ed Falis
2006-03-20 14:20 ` Dmitry A. Kazakov
2006-03-20 15:31 ` Robert A Duff [this message]
2006-03-20 19:01 ` Martin Krischik
2006-03-20 20:20 ` Georg Bauhaus
2006-03-20 21:51 ` Jeffrey R. Carter
2006-03-21 19:12 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox