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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,84b1828b2b26fc4f X-Google-Attributes: gid103376,public From: dmitry6243@my-deja.com Subject: Re: Common ancestor (visibility rules) Date: 2000/03/29 Message-ID: <8bsgpf$96f$1@nnrp1.deja.com>#1/1 X-Deja-AN: 603775978 References: <8bprin$a37$1@nnrp1.deja.com> <8bq726$lo8$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 212.79.192.251 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Mar 29 09:01:43 2000 GMT X-MyDeja-Info: XMYDJUIDdmitry6243 Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.72 [en] (WinNT; I) Date: 2000-03-29T00:00:00+00:00 List-Id: In article <8bq726$lo8$1@nnrp1.deja.com>, Robert Dewar wrote: > No need to invent a new name, it is called Standard > > Then package A could be specified as > > Root.A and A's Foo as Root.A.Foo. Yes, "Standard" was actually my first attempt, but I tried the following (of course in the real program): -------------------- b-a.adb with Standard.A; use Standard.A; separate (B) procedure A is begin Foo; end A; which does not work, because compiler do not understand withing of Standard.A. This caused my confusion. The correct version is: -------------------- b-a.adb with A; use Standard.A; separate (B) procedure A is begin Foo; end A; I must say, that the difference is rather subtle. I suppose it has some relation with unit library management. Perhaps compiler should first search for physical childs of Standard and then in case of failure, discard the "Standard" prefix, so that: with Standard.A; use Standard.A; would be correct? > > Interesting is that C++ has this > > feature. > > Perhaps they copied it from Ada 95 :-) Surely they did! (:-)) Regards, Dmitry Kazakov Sent via Deja.com http://www.deja.com/ Before you buy.