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: Robert Dewar Subject: Re: Common ancestor (visibility rules) Date: 2000/03/28 Message-ID: <8bq726$lo8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 603367646 References: <8bprin$a37$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x38.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Mar 28 12:03:25 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-28T00:00:00+00:00 List-Id: In article <8bprin$a37$1@nnrp1.deja.com>, dmitry6243@my-deja.com wrote: > Hello! > > Perhaps I've missed something yup! > but it seems that compilation units > (except for library ones) do not have common ancestor. of course they do, it is called standard, all library packages are compiled within standard. > A.Foo; -- Error! no exclamation mark needed, obviously A is not visible here! > Now there is no way to use A.Foo in B.A, because B.A hides A. The > problem could be easily solved if all compilation unit had have a common > ancestor package, say "Root". 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. Try Standard.A.Foo > Interesting is that C++ has this > feature. Perhaps they copied it from Ada 95 :-) Sent via Deja.com http://www.deja.com/ Before you buy.