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, WEIRD_PORT 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!t19g2000vbc.googlegroups.com!not-for-mail From: Andrea Taverna Newsgroups: comp.lang.ada Subject: Re: Visibility of package parameters in child packages Date: Wed, 16 Dec 2009 08:54:27 -0800 (PST) Organization: http://groups.google.com Message-ID: <9bbb16f2-9ff2-45a5-bafd-be4bf47ef064@t19g2000vbc.googlegroups.com> References: <4b27f8e9$0$6591$9b4e6d93@newsspool3.arcor-online.net> <02e4d172-0eb9-4c2a-ac0f-68e151916d59@o19g2000vbj.googlegroups.com> <4b28dd43$0$6586$9b4e6d93@newsspool3.arcor-online.net> <06a89bbe-6b1d-4996-b699-8da81bc6806a@m11g2000vbo.googlegroups.com> <4b2902a7$0$7633$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 151.47.214.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1260982468 11386 127.0.0.1 (16 Dec 2009 16:54:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Dec 2009 16:54:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t19g2000vbc.googlegroups.com; posting-host=151.47.214.121; posting-account=q_H03goAAABDwevycEkYzGRVjq5lpBVA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8402 Date: 2009-12-16T08:54:27-08:00 List-Id: On 16 Dic, 16:54, Georg Bauhaus wrote: > Andrea Taverna schrieb: > > > > > On 16 Dic, 14:14, Georg Bauhaus wrote: > >> Andrea Taverna schrieb: > > >>> and the compiler replied > >>> -----%<-----%<-----%<-----%<-----%< > >>> ]# gnatmake main.adb > >>> gcc -c main.adb > >>> main.adb:9:05: instantiation error at parent-child.adb:6 > >>> main.adb:9:05: "F" is not visible (more references follow) > >>> main.adb:9:05: instantiation error at parent-child.adb:6 > >>> main.adb:9:05: non-visible declaration at q.ads:3 > >>> gnatmake: "main.adb" compilation error > >>> -----%<-----%<-----%<-----%<-----%< > >>> Am I missing something? > >> It's not a "use" issue I think. =A0P.F is marked invisible, > >> too. > > I'm not sure I understand you correctly here, however P.F *is* > > visible, in fact the compiler stops complaining after prefixig P's > > name to F. > > My mistake, sorry. (I had forgotton to prefix the other F.) > > Is the question then whether or not "use" of a generic > formal package extends to the formal parameters of the > generic formal package (a formal package with a (<>))? Hmm... I know that they are already visible in Parent as soon as I add the use-clause. The problem is whether I can "use" the generic formal package in a child of the generic package of which is a parameter.The fact the package itself is visible in every children of such package would suggest that I could. > My best guess would be to start from Ada 95 12.7(10), > if that still applies, but I simply don't know, and I > don't have my other compiler handy which might give a more > detailed error message. Please bear some patience, I'ma self-thaught newbie. http://www.adapower.com/adapower1/rm95/arm95_187.html In Ada95 12.7 there seems not to be anything relevant about such problem. What does the "(10)" mean? thanks Andrea