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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eeb3ea7993143012 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.234.38 with SMTP id ub6mr8129388pbc.2.1337220506375; Wed, 16 May 2012 19:08:26 -0700 (PDT) Path: pr3ni7378pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: Declaring private packages to instantiate generics? Date: Wed, 16 May 2012 18:24:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <15088039.2720.1337217898163.JavaMail.geo-discussion-forums@ynln6> References: <25586653.906.1337178987063.JavaMail.geo-discussion-forums@pbcvy1> NNTP-Posting-Host: 96.2.54.122 Mime-Version: 1.0 X-Trace: posting.google.com 1337220506 14705 127.0.0.1 (17 May 2012 02:08:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 17 May 2012 02:08:26 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.2.54.122; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-05-16T18:24:58-07:00 List-Id: On Wednesday, May 16, 2012 9:45:20 AM UTC-5, Markus Sch=F6pflin wrote: > Am 16.05.2012 16:36, schrieb Adam Beneschan: >=20 > [...] >=20 > >> ---%<--- > >> package body FOO is > >> package BAR is new SOME_GENERIC_PACKAGE; > >> procedure BAR_P is new BAR.P; > >> procedure P is begin BAR_P; end; > >> end FOO; > >> --->%--- > >> > >> Regards, > >> Markus > > > > You can change the last to > > > > procedure P renames BAR_P; >=20 > Thanks for your answer. Not as nice as I had hoped, but basically what I = was=20 > looking for. >=20 > Markus Why is using RENAMES not nice? It seems that the only difference between using RENAMES and what you showed= (procedure P is new BAR.P;) is the syntax.