comp.lang.ada
 help / color / mirror / Atom feed
From: "PG" <leviquet@free.fr>
Subject: Re: [Newbie] Visibility parent-child
Date: Tue, 11 May 2004 20:46:08 +0200
Date: 2004-05-11T21:12:54+02:00	[thread overview]
Message-ID: <40a125b6$0$18311$626a14ce@news.free.fr> (raw)
In-Reply-To: c7r61v$haa$1@a1-hrz.uni-duisburg.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

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" <sb463ba@l1-hrz.uni-duisburg.de> a �crit dans le message de
news:c7r61v$haa$1@a1-hrz.uni-duisburg.de...
> PG <leviquet@free.fr> 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





  reply	other threads:[~2004-05-11 18:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-11 16:15 [Newbie] Visibility parent-child PG
2004-05-11 18:29 ` Georg Bauhaus
2004-05-11 18:46   ` PG [this message]
2004-05-12  9:32     ` Martin Krischik
2004-05-12  6:00 ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox