comp.lang.ada
 help / color / mirror / Atom feed
From: Freejack <freejack@nowhere.net>
Subject: Re: Allocation of local constant arrays
Date: Thu, 20 May 2004 18:36:58 GMT
Date: 2004-05-20T18:36:58+00:00	[thread overview]
Message-ID: <pan.2004.05.20.19.22.24.392236@nowhere.net> (raw)
In-Reply-To: 17820062.Hog322c0fT@linux1.krischik.com

On Thu, 20 May 2004 13:24:07 +0200, Martin Krischik wrote:

> 
> Normally I put them with the procedure. Sometimes I put them in packages
> inside the procededure:
> 
> procedure Proc
> is
>   package Pack
>     ...
>   end Pack;
> begin
> ...
> 
> With Regards
> 
> Martin


Wouldn't that kind of declaration essentially make the variables static
constants, unchangeable from one call of the procedure to another. And
would I reference the var as Proc.Pack.foobar or just Pack.foobar?

Although it looks like this type of definition would help the compiler
perform optimizations.

Freejack




  reply	other threads:[~2004-05-20 18:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19 15:07 Allocation of local constant arrays Davide
2004-05-19 15:17 ` Davide
2004-05-19 21:16 ` Robert I. Eachus
2004-05-20  9:56   ` Davide
2004-05-20 11:24     ` Martin Krischik
2004-05-20 18:36       ` Freejack [this message]
2004-05-21  9:44         ` Martin Krischik
2004-05-21  2:32     ` Steve
2004-05-21  3:07     ` Robert I. Eachus
replies disabled

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