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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,12eefe849df97d15 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!u18g2000pro.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Visibility of package parameters in child packages Date: Wed, 16 Dec 2009 13:27:33 -0800 (PST) Organization: http://groups.google.com Message-ID: <85ffda7b-0425-44ab-a260-2262b5cc18fe@u18g2000pro.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1260998853 22894 127.0.0.1 (16 Dec 2009 21:27:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Dec 2009 21:27:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u18g2000pro.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8405 Date: 2009-12-16T13:27:33-08:00 List-Id: On Dec 15, 11:28=A0am, Andrea Taverna wrote: > Hello everyone, > > I have the following packages: > > generic > =A0 =A0 =A0 =A0 with package P is new Q (<>); > =A0 =A0 =A0 =A0 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