From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1264e586250f470 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 20:05:27 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dlwester@hotmail.com (Don Westermeyer) Newsgroups: comp.lang.ada Subject: Re: Elaboration of nested generic package. Date: 7 Jul 2003 20:05:26 -0700 Organization: http://groups.google.com/ Message-ID: <5437fafb.0307071905.5d3bbc4e@posting.google.com> References: NNTP-Posting-Host: 207.191.203.88 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1057633526 16752 127.0.0.1 (8 Jul 2003 03:05:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Jul 2003 03:05:26 GMT Xref: archiver1.google.com comp.lang.ada:40122 Date: 2003-07-08T03:05:26+00:00 List-Id: christoph.grein@eurocopter.com wrote in message news:... > 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.