From: sb463ba@d250-hrz.uni-duisburg.de (Georg Bauhaus)
Subject: package child question
Date: 2000/02/07
Date: 2000-02-07T00:00:00+00:00 [thread overview]
Message-ID: <87mugk$sa3$1@news-hrz.uni-duisburg.de> (raw)
Hello,
I wonder if someone could help me pointing out to me what I've done
wrong in the following two library hierarchies; the first has
a parent and a child, not withing anything, while the second
hierarchy's child body withes the child of the first, like this:
package A is
end A;
package A.B is
end A.B;
package B is
end B;
package B.A is
pragma Elaborate_Body;
end B.A;
with A.B;
package body B.A is
begin
declare
use A.B; -- compiler says: "B" not declared in "A"
begin
null;
end;
end B.A;
This only happens if the use clause is in A.B body statements,
there is no error message when it is in the context clause of A.B.
Is there a way out of this, other than choosing different names
(which works)?
Georg Bauhaus
next reply other threads:[~2000-02-07 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-07 0:00 Georg Bauhaus [this message]
2000-02-07 0:00 ` package child question Jean-Pierre Rosen
2000-02-08 0:00 ` Steve Folly
2000-02-09 0:00 ` Jean-Pierre Rosen
2000-02-09 0:00 ` Georg Bauhaus
2000-02-09 0:00 ` Robert A Duff
2000-02-10 0:00 ` Ehud Lamm
2000-02-09 0:00 ` Marin D. Condic
2000-02-10 0:00 ` Larry Kilgallen
2000-02-10 0:00 ` Pascal Obry
2000-02-11 0:00 ` Steve Folly
2000-02-08 0:00 ` Matthew Heaney
-- strict thread matches above, loose matches on Subject: below --
2000-02-08 0:00 Christoph Grein
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox