comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Declaring private packages to instantiate generics?
Date: Wed, 16 May 2012 18:24:58 -0700 (PDT)
Date: 2012-05-16T18:24:58-07:00	[thread overview]
Message-ID: <15088039.2720.1337217898163.JavaMail.geo-discussion-forums@ynln6> (raw)
In-Reply-To: <jp0eht$tt5$1@speranza.aioe.org>

On Wednesday, May 16, 2012 9:45:20 AM UTC-5, Markus Schöpflin wrote:
> Am 16.05.2012 16:36, schrieb Adam Beneschan:
> 
> [...]
> 
> >> ---%<---
> >> 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;
> 
> Thanks for your answer. Not as nice as I had hoped, but basically what I was 
> looking for.
> 
> 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.



  reply	other threads:[~2012-05-17  2:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16 14:21 Declaring private packages to instantiate generics? Markus Schöpflin
2012-05-16 14:36 ` Adam Beneschan
2012-05-16 14:45   ` Markus Schöpflin
2012-05-17  1:24     ` Shark8 [this message]
2012-05-17  3:37   ` Adam Beneschan
2012-05-21  8:06     ` Markus Schöpflin
2012-05-21 15:51       ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox