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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4ba91f4ae36a2c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Egil_H=F8vik?= Newsgroups: comp.lang.ada Subject: Re: Elaborate_All on child package Date: Tue, 6 Sep 2011 00:05:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <507f7b91-0fab-4f62-86e1-8185aff2315c@glegroupsg2000goo.googlegroups.com> References: <19a85f93-3cd2-4054-8022-21ba294d53e3@glegroupsg2000goo.googlegroups.com> Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 193.71.180.107 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1315292713 1760 127.0.0.1 (6 Sep 2011 07:05:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 6 Sep 2011 07:05:13 +0000 (UTC) In-Reply-To: <19a85f93-3cd2-4054-8022-21ba294d53e3@glegroupsg2000goo.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.180.107; posting-account=P68zsgoAAABKpXKMUuwuUZ_RfBk1kZfB User-Agent: G2/1.0 X-Google-Web-Client: true Xref: g2news2.google.com comp.lang.ada:21826 Date: 2011-09-06T00:05:13-07:00 List-Id: On Saturday, September 3, 2011 6:57:16 PM UTC+2, Rego, P. wrote: > However, should it be done this way? Due to it is already "withed" to the parent package, so why have I make a new with? I mean: why is the following code incorrect: > pragma Elaborate_All (Forum_Test); Forum_Test is unknown. It is not defined in this scope. > package Forum_Test.Childp is <....> Implicit with happens here, after Elaborate_All > > and why is the following code correct? > with Forum_Test; > pragma Elaborate_All (Forum_Test); > package Forum_Test.Childp is <....> Here, Forum_Test is known to the pragma, due to the explicit with. Would you expect this to compile: pragma Elaborate_All(Forum_Test); with Forum_Test; -- ~egilhh