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.107.201.149 with SMTP id z143mr6393751iof.129.1516636466432; Mon, 22 Jan 2018 07:54:26 -0800 (PST) X-Received: by 10.157.11.12 with SMTP id a12mr349236ota.8.1516636466279; Mon, 22 Jan 2018 07:54:26 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g80no1961182itg.0!news-out.google.com!b73ni6905ita.0!nntp.google.com!g80no1961181itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 22 Jan 2018 07:54:26 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.243.127.244; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.243.127.244 References: <193126c2-f171-43ed-8c7c-00570f1dd4d4@googlegroups.com> <1eb1f57d-36fa-4bf0-8a40-5b32d71e5c28@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: 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: Mon, 22 Jan 2018 15:54:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 1611319833 X-Received-Bytes: 2847 Xref: reader02.eternal-september.org comp.lang.ada:50057 Date: 2018-01-22T07:54:26-08:00 List-Id: Le lundi 22 janvier 2018 16:36:10 UTC+1, Mehdi Saada a =C3=A9crit=C2=A0: > > Imagine this: > > generic > > package P1 is new GP1 (<>); > > package P2 is new GP1 (<>); > > package GP2 is... end GP2; > package Inst1 is new GP1; > package Inst2 is new GP2 (Inst1, Inst1); > then you would end up with two different handlers for the same exception = (since formals P1 and P2 are actually the same package Inst1). And that's a= no-no! Ah ! Now I get it. Earlier explanations seemed like chinese homonyms, but a= fine example makes it crystal clear. The terminology is this area, is stil= l too abstract and confuses me, 'cause I barely touched it yet. I didn't co= nsidered that eventuality of two different views (is that the term ?) of th= e same instances screwing with each others... eventhough it's not so much c= onvoluted. ... Thinking about it, I was under the false assumption that the generic it= self was passed as parameter, and instanciated by or inside the second gene= ric package, whereas it's clear from the instanciation of the latter, that = it takes on an INSTANCE. I wasn't even conscious of that confusion. It just= messed up my reasoning...