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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6d543b1cb62702,start X-Google-Attributes: gid103376,public From: sb463ba@d250-hrz.uni-duisburg.de (Georg Bauhaus) Subject: package child question Date: 2000/02/07 Message-ID: <87mugk$sa3$1@news-hrz.uni-duisburg.de>#1/1 X-Deja-AN: 582723982 Organization: Gerhard-Mercator-Universitaet - Gesamthochschule Duisburg Newsgroups: comp.lang.ada Date: 2000-02-07T00:00:00+00:00 List-Id: 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