From: christoph.grein@eurocopter.com
To: comp.lang.ada@ada.eu.org
Subject: Re: Elaboration of nested generic package.
Date: Wed, 9 Jul 2003 07:21:28 +0200 (MET DST)
Date: 2003-07-09T07:21:28+02:00 [thread overview]
Message-ID: <mailman.1.1057728788.24167.comp.lang.ada@ada.eu.org> (raw)
Matthew,
I do not see why you think there is a difference whether you instantiate on
library level or on a nested level:
> with GP;
> pragma Elaborate_All (GP); --you need this
>
> package body Q is
> package P is new GP;
> end Q;
>
> See the CLA thread "AQ&S Guidance on pragma Elaborate_Body" which
> occurred in 1997/04 -- particularly the responses from Bob Duff and
> Robert Dewar.
>
> I forget whether you need the pragma for root-level instantiations:
>
> with GP;
> pragma Elaborate_All (GP); --needed?
> package P is new GP;
The pragma says: Elaborate all units that are on the with-tree of the with-ed
unit (GP) before elaborating the with-ing package (Q resp. P). And the body of
the generic is needed elaborated before instantiation in any case.
Whether the pragma in the generic spec is of any use, I do not know either and I
presently do not feel like searching the RM :-(
next reply other threads:[~2003-07-09 5:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 5:21 christoph.grein [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-02 4:13 Elaboration of nested generic package christoph.grein
2003-07-08 3:05 ` Don Westermeyer
2003-07-08 17:46 ` Matthew Heaney
2003-07-10 1:10 ` Don Westermeyer
2003-07-10 1:35 ` Robert I. Eachus
2003-07-10 4:51 ` Robert I. Eachus
2003-07-10 6:58 ` Jean-Pierre Rosen
2003-07-10 15:08 ` Robert I. Eachus
2003-07-11 21:26 ` Robert A Duff
2003-07-10 14:12 ` Matthew Heaney
2003-07-10 15:39 ` Robert I. Eachus
2003-07-11 21:41 ` Robert A Duff
2003-07-14 18:35 ` Matthew Heaney
2003-07-15 17:19 ` Randy Brukardt
2003-07-16 15:24 ` Matthew Heaney
2003-07-17 2:08 ` Randy Brukardt
2003-07-17 15:54 ` Richard Riehle
2003-07-10 15:03 ` Don Westermeyer
2003-07-10 15:45 ` Matthew Heaney
2003-07-01 20:14 Don Westermeyer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox