comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: Help needed - Upper Bound of an array - Question.
Date: Tue, 7 Feb 2012 08:13:11 -0800 (PST)
Date: 2012-02-07T08:13:11-08:00	[thread overview]
Message-ID: <047458b4-4e2d-4fdf-bede-486ee08f40f9@s7g2000vby.googlegroups.com> (raw)
In-Reply-To: d0f24231-9160-4bbd-8286-6d219b8eb296@x19g2000yqh.googlegroups.com

On 7 fév, 16:59, adacrypt <austin.oby...@hotmail.com> wrote:

> Question : can I use your 'big array' declaration procedure in Ada-95
> just as you have typed here ? that would be great - will it work just
> by replacing the present declaration with this? do I type in as a
> straight crib just like that, regards - adacrypt

The only difference is that the array itself is My_Array.all; My_Array
is its access.
But since My_Array.all(i) can also be written shorter as My_Array(i),
the changes to you program will be minimal.
And yes, you can use it in Ada 95 and above, and even in Ada 83 (with
a small difference: no "Ada." before Unchecked_Deallocation).
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address



  reply	other threads:[~2012-02-07 16:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 14:41 Help needed - Upper Bound of an array - Question adacrypt
2012-02-07 15:00 ` Yannick Duchêne (Hibou57)
2012-02-07 15:04 ` Mark Lorenzen
2012-02-07 15:08 ` Ludovic Brenta
2012-02-07 15:27   ` Yannick Duchêne (Hibou57)
2012-02-07 15:59   ` adacrypt
2012-02-07 16:13     ` Gautier write-only [this message]
2012-02-07 17:30     ` Jeffrey Carter
2012-02-07 19:51       ` tmoran
2012-02-09  3:31         ` Randy Brukardt
2012-02-07 18:22     ` Ludovic Brenta
2012-02-07 20:42       ` adacrypt
2012-02-07 18:56     ` Georg Bauhaus
2012-02-07 21:22     ` Robert A Duff
2012-02-07 15:33 ` Álex R. Mosteo
2012-02-07 22:08 ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox