From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Normalizing array indices
Date: Wed, 02 Nov 2011 08:16:16 -0400
Date: 2011-11-02T08:16:16-04:00 [thread overview]
Message-ID: <wccbosuzpm7.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: Pine.LNX.4.64.1111012119360.10832@medsec1.medien.uni-weimar.de
stefan-lucks@see-the.signature writes:
> I am relieved that I am not the only one who happened to suffer from such a
> problem. Still, I think a way to *specify* a formal subprogram parameter F
> such that F'First is a given constant, regardless of A'First if A is the
> actual parameter, would be ease testing and might be a good extension to
> Ada (2020?).
I think you want it on the type. Ada 9X proposed something like:
type T (Last : Natural) is array (1..Last) of Blah;
to fix the lower bound at 1. Slices should slide.
It's still a good idea, and will probably still be a good idea
in 2020.
- Bob
next prev parent reply other threads:[~2011-11-02 12:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 18:58 Normalizing array indices Stefan.Lucks
2011-10-28 20:36 ` Adam Beneschan
2011-11-01 20:18 ` Stefan.Lucks
2011-10-28 21:13 ` Randy Brukardt
2011-10-29 7:29 ` Pascal Obry
2011-10-29 19:18 ` Jeffrey Carter
2011-10-29 19:58 ` tmoran
2011-10-29 21:15 ` Simon Wright
2011-10-29 20:41 ` Randy Brukardt
2011-11-01 20:49 ` stefan-lucks
2011-11-01 20:44 ` stefan-lucks
2011-11-01 20:43 ` stefan-lucks
2011-11-02 12:16 ` Robert A Duff [this message]
2011-10-29 9:05 ` Simon Wright
2011-10-29 9:23 ` Dmitry A. Kazakov
2011-11-01 20:55 ` stefan-lucks
2011-11-02 12:14 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox