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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,40d95f0abf698cd9,start X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!feeder2-1.proxad.net!news9-e.free.fr!not-for-mail From: "PG" Newsgroups: comp.lang.ada Subject: [Newbie] Visibility parent-child Date: Tue, 11 May 2004 18:15:40 +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: <40a0fc28$0$31944$626a14ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 11 May 2004 18:15:36 MEST NNTP-Posting-Host: 82.66.86.135 X-Trace: 1084292136 news9-e.free.fr 31944 82.66.86.135:3779 X-Complaints-To: abuse@proxad.net Xref: controlnews3.google.com comp.lang.ada:445 Date: 2004-05-11T18:15:36+02:00 List-Id: Hi, I can't access the child'types and I don't know why. -- parent package specification package Parent is blabla; end Parent; -- + body -- child package specification package Parent.Child is type Object is private; procedure Add (Ob: Object); private type Object is record ... end record; end Parent.Child; -- + body 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; I don't know why the type Object is not directly visible without prefix ? Thanks for your help. Patrick