comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Visibility of package parameters in child packages
Date: Wed, 16 Dec 2009 13:27:33 -0800 (PST)
Date: 2009-12-16T13:27:33-08:00	[thread overview]
Message-ID: <85ffda7b-0425-44ab-a260-2262b5cc18fe@u18g2000pro.googlegroups.com> (raw)
In-Reply-To: b6650f1a-7a86-4059-a0ea-40a90e0c3645@u37g2000vbc.googlegroups.com

On Dec 15, 11:28 am, Andrea Taverna <a.t...@hotmail.it> wrote:
> Hello everyone,
>
> I have the following packages:
>
> generic
>         with package P is new Q (<>);
>         use P;
> package Parent is
> ...
> end Parent;
>
> generic
> Parent.Child is
> ...
> end Parent.Child;
>
> I can see P declarations inside Parent, but in Child I need to prefix
> everything with 'P.', even if I add a use-clause.
> This happens with gnat-4.3.0 .
> Is it normal?

It's a bug.  The scope of the "use P" is supposed to include
Parent.Child (8.1(9), 8.4(7)).

                            -- Adam



      parent reply	other threads:[~2009-12-16 21:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-15 19:28 Visibility of package parameters in child packages Andrea Taverna
2009-12-15 21:00 ` Georg Bauhaus
2009-12-16 11:50   ` Andrea Taverna
2009-12-16 13:14     ` Georg Bauhaus
2009-12-16 14:21       ` Andrea Taverna
2009-12-16 15:54         ` Georg Bauhaus
2009-12-16 16:54           ` Andrea Taverna
2009-12-16 18:54             ` Georg Bauhaus
2009-12-16 21:44               ` Adam Beneschan
2009-12-16 21:26             ` sjw
2009-12-17  0:19     ` Randy Brukardt
2009-12-17 18:50       ` Ludovic Brenta
2009-12-16 21:27 ` Adam Beneschan [this message]
replies disabled

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