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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,40d95f0abf698cd9 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!feeder2-1.proxad.net!news3-e.free.fr!not-for-mail From: "PG" Newsgroups: comp.lang.ada References: <40a0fc28$0$31944$626a14ce@news.free.fr> Subject: Re: [Newbie] Visibility parent-child Date: Tue, 11 May 2004 20:46:08 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: <40a125b6$0$18311$626a14ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 11 May 2004 21:12:54 MEST NNTP-Posting-Host: 82.66.86.135 X-Trace: 1084302774 news3-e.free.fr 18311 82.66.86.135:3637 X-Complaints-To: abuse@proxad.net Xref: controlnews3.google.com comp.lang.ada:451 Date: 2004-05-11T21:12:54+02:00 List-Id: Thanks for your help. No, there is no other "Object" which hide this one. But the real problem was, I suppose, I nammed the package like the type. package Parent.Object is type object is... I don't knew it was prohibited... "Georg Bauhaus" a �crit dans le message de news:c7r61v$haa$1@a1-hrz.uni-duisburg.de... > PG wrote: > > : In a client program, I import these 2 packages: > : with Parent, Parent.Child; > : use Parent, Parent.Child; > : ... > : So, the procedure Add is visible but not the type Object ! > : When I declare : Ob: Object; > : it detects an error: "Object" is not visible. > : When I declare with the prefix, it's OK: Ob: Parent.Child.Object; > > Is there a type "Object" other than the one from Parent.Child > which hides the one you expected? My compiler has no complaints. > > -- Georg