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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,b6d543b1cb62702 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: package child question Date: 2000/02/07 Message-ID: <87oi6t$jd$1@wanadoo.fr>#1/1 X-Deja-AN: 583090644 References: <87mugk$sa3$1@news-hrz.uni-duisburg.de> X-Priority: 3 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 949996573 621 193.250.92.6 (8 Feb 2000 07:56:13 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 8 Feb 2000 07:56:13 GMT Newsgroups: comp.lang.ada Date: 2000-02-08T07:56:13+00:00 List-Id: Georg Bauhaus a �crit dans le message : 87mugk$sa3$1@news-hrz.uni-duisburg.de... > 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)? > The closest 'A' that is visible is B.A, so you "use A.B" really means "use B.A.B". If you want to be absolutely, unambiguously sure of what you name, start with Standard: use Standard.A.B; (unless you have also redefined locally Standard, but that would *really* be looking for trouble :-) -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog