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.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.36.19.78 with SMTP id 75mr4806413itz.0.1516576041770; Sun, 21 Jan 2018 15:07:21 -0800 (PST) X-Received: by 10.157.1.22 with SMTP id 22mr246518otu.0.1516576041618; Sun, 21 Jan 2018 15:07:21 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w142no1681961ita.0!news-out.google.com!b73ni5863ita.0!nntp.google.com!g80no1687406itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 21 Jan 2018 15:07:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.245.160.161; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.245.160.161 References: <193126c2-f171-43ed-8c7c-00570f1dd4d4@googlegroups.com> <1eb1f57d-36fa-4bf0-8a40-5b32d71e5c28@googlegroups.com> <6378807a-d938-4fac-938b-d3a8616d7f25@googlegroups.com> <297e4450-9934-40b8-9b55-1b16b3e421e4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <531299d8-af8e-45b4-9531-61a3bff7b42c@googlegroups.com> Subject: Re: making a son benefit access ton an instanciation of a generic package required as a formal parameter to his father and instanciated by him From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Sun, 21 Jan 2018 23:07:21 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:50045 Date: 2018-01-21T15:07:21-08:00 List-Id: I think I already got the idea, and wrote things accordingly... Though a (g= eneric) child of a generic package WILL access through prefixing with his p= arents'name, not the name of this instance. So in this case things are real= ly declared in the generic package. But I've no problem with that here: An exception is declared in an package, P1, instance of P1_G, and the RM sa= ys I can't use it in a handler... why so ? Renaming doesn't work either. It= 's stupid, why doesn't it behave like a normal package ! As long as the dif= ferent instances don't share the same name, there are no reason. I wrote P1.Exception_Name, not P1_G.Exception_Name, so it should call on th= e instance. Yet the compiler says "is declared in generic formal package". = ??