From: dlwester@hotmail.com (Don Westermeyer)
Subject: Re: Elaboration of nested generic package.
Date: 7 Jul 2003 20:05:26 -0700
Date: 2003-07-08T03:05:26+00:00 [thread overview]
Message-ID: <5437fafb.0307071905.5d3bbc4e@posting.google.com> (raw)
In-Reply-To: mailman.0.1057119854.328.comp.lang.ada@ada.eu.org
christoph.grein@eurocopter.com wrote in message news:<mailman.0.1057119854.328.comp.lang.ada@ada.eu.org>...
> package Example is
>
> pragma Elaborate_Body;
>
> procedure Do_Something;
>
> generic
> type Item_Type is private;
> package Nested is
> --pragma Elaborate_Body;
> procedure Do_Another_Thing;
> end Nested;
>
> end Example;
>
> There is no need to put pragma Elaborate_Body into the nested generic, because
> the body of Example also holds the body of Nested, and when the body of Example
> is elaborated, the body of Nested is inevitably elaborated as well.
>
> What you cite in the style guide applies only to library generic units (or
> should that be generic library units :-):
> http://www.adaic.org/docs/95style/html/sec_8/8-4-3.html
Thanks for the reply. I was hoping that was the case. It's hard to
interpret the LRM somtimes. IMO Ada 83/95 could have made the whole
issue of elaboration easier to deal with (for instance always
elaborate the body UNLESS a pragma 'Do_Not_Elaborate' is applied).
Thanks again.
D Westermeyer.
next prev parent reply other threads:[~2003-07-08 3:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 4:13 Elaboration of nested generic package christoph.grein
2003-07-08 3:05 ` Don Westermeyer [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2003-07-09 5:21 christoph.grein
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