comp.lang.ada
 help / color / mirror / Atom feed
From: "Egil Høvik" <egilhovik@hotmail.com>
Subject: Re: Elaborate_All on child package
Date: Tue, 6 Sep 2011 00:05:13 -0700 (PDT)
Date: 2011-09-06T00:05:13-07:00	[thread overview]
Message-ID: <507f7b91-0fab-4f62-86e1-8185aff2315c@glegroupsg2000goo.googlegroups.com> (raw)
In-Reply-To: <19a85f93-3cd2-4054-8022-21ba294d53e3@glegroupsg2000goo.googlegroups.com>

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




  parent reply	other threads:[~2011-09-06  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-03 16:57 Elaborate_All on child package Rego, P.
2011-09-05  5:21 ` AdaMagica
2011-09-05  9:28   ` Georg Bauhaus
2011-09-10 19:24   ` Rego, P.
2011-09-06  7:05 ` Egil Høvik [this message]
2011-09-06 12:51   ` Robert A Duff
2011-09-06 13:46     ` Niklas Holsti
2011-09-06 14:23       ` Robert A Duff
2011-09-07  5:03         ` AdaMagica
2011-09-07 10:49           ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox