From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Record representation
Date: Thu, 10 Jun 2004 01:13:44 -0500
Date: 2004-06-10T01:13:44-05:00 [thread overview]
Message-ID: <u7ydnZqpkMiYYVrdRVn-jg@megapath.net> (raw)
In-Reply-To: mailman.84.1086827906.391.comp.lang.ada@ada-france.org
"Stephen Leake" <stephen_leake@acm.org> wrote in message
...
> > type AA is array (Index) of A;
> > for AA'Size use A'Size * Index'Last; -- Not allowed!!!!!
>
> for AA'Size use A'Size * Max_Index;
The trouble here is that A'Size is not static (A being a composite type);
Index'Last *is* static. So you've solved the wrong problem. :-)
Randy.
next prev parent reply other threads:[~2004-06-10 6:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-09 9:14 Record representation Martin Dowie
2004-06-09 11:38 ` Martin Krischik
2004-06-09 14:11 ` Martin Dowie
2004-06-09 15:30 ` Mark H Johnson
2004-06-09 16:58 ` Martin Dowie
2004-06-09 17:44 ` tmoran
2004-06-09 20:08 ` Mark H Johnson
2004-06-09 21:12 ` Martin Dowie
2004-06-09 21:14 ` Martin Dowie
2004-06-10 0:38 ` Stephen Leake
2004-06-10 6:13 ` Randy Brukardt [this message]
2004-06-10 6:10 ` Randy Brukardt
2004-06-15 7:37 ` Martin Dowie
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox