comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: ??? Help!: how to do unconstraned arrays/records???
Date: 1998/11/06
Date: 1998-11-06T00:00:00+00:00	[thread overview]
Message-ID: <36430C81.F9D3A26E@elca-matrix.ch> (raw)
In-Reply-To: F1yvA7.E30.0.-s@inmet.camb.inmet.com

Tucker Taft wrote:

>    Number_Of_Hosts : constant Natural := Parameters.Get_Host_Count(...);
>    Number_Of_Nodes : constant Natural := Parameters.Get_Node_Count(...);
> 
> [...]
> 
> In the above example, you would certainly want a
> "pragma Elaborate(Parameters);" after the "with Parameters;" clause
> on the package with this host/node data structure, to minimize the
> chance of a Program_Error due to an elaboration order problem.

Probably "pragma Elaborate_All(Parameters);" would be safer, in case
Parameters depends on stuff that needs to be elaborated. Almost all uses
of pragma Elaborate should be replaced by Elaborate_All, I think.




  reply	other threads:[~1998-11-06  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-04  0:00 ??? Help!: how to do unconstraned arrays/records??? al johnston
1998-11-04  0:00 ` Albert S. Johnston
1998-11-05  0:00   ` dewarr
1998-11-05  0:00     ` al johnston
1998-11-05  0:00       ` Stephen Leake
1998-11-05  0:00       ` dewar
1998-11-05  0:00 ` Tucker Taft
1998-11-05  0:00   ` Tucker Taft
1998-11-05  0:00     ` al johnston
1998-11-05  0:00   ` Tucker Taft
1998-11-05  0:00     ` Mats Weber
1998-11-05  0:00       ` Tucker Taft
1998-11-05  0:00         ` al johnston
1998-11-05  0:00           ` Tucker Taft
1998-11-06  0:00             ` Mats Weber [this message]
1998-11-06  0:00               ` Tucker Taft
replies disabled

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