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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95ec2e4b6b5ff841,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-08 22:34:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Elaboration of nested generic package. Date: Wed, 9 Jul 2003 07:21:28 +0200 (MET DST) Organization: ENST, France Message-ID: Reply-To: grein@egypt.otn.eurocopter.de NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 1057728793 70473 137.194.161.2 (9 Jul 2003 05:33:13 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 9 Jul 2003 05:33:13 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Authentication-Warning: mail.eurocopter.com: uucp set sender to using -f Content-MD5: Gq7RMp7iSRET6fuYFJP5tw== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40138 Date: 2003-07-09T07:21:28+02:00 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 :-(