comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: default formal parameters in generic declarations
Date: Tue, 04 Mar 2008 13:50:59 GMT
Date: 2008-03-04T13:50:59+00:00	[thread overview]
Message-ID: <pan.2008.03.04.13.50.02.762086@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: u1w6sm11b.fsf@stephe-leake.org

On Mon, 03 Mar 2008 07:42:40 -0500, Stephen Leake wrote:

> Eric Hughes <eric.eh9@gmail.com> writes:
> 
>> I would like to implement this in Ada, but the absence of a default
>> package parameter means that instantiation is horribly clunky and that
>> only the most dedicated would use it.
> 
> I don't see why this would be "horribly klunky"; they typical user
> will do:
> 
> package My_Instance is new Generic_Package 
>     (Aspect_Package => Null_Aspect_Package,
>      foo => Bar,
>      ...);

Perhaps I am being a little stupid, but how does this work?
Could you flesh out the detail a little more?

What kind of parameter is Aspect_Package? and where does
the Null_Aspect_Package come from?
--
Adrian




  reply	other threads:[~2008-03-04 13:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 17:21 default formal parameters in generic declarations Eric Hughes
2008-03-02 17:42 ` Robert A Duff
2008-03-02 19:40   ` Eric Hughes
2008-03-03  9:17     ` Dmitry A. Kazakov
2008-03-03 11:15       ` Georg Bauhaus
2008-03-03 13:56         ` Dmitry A. Kazakov
2008-03-04 16:15       ` Eric Hughes
2008-03-04  3:43     ` Randy Brukardt
2008-03-04 16:51       ` Eric Hughes
2008-03-04 18:43         ` Randy Brukardt
2008-03-05 21:08           ` Eric Hughes
2008-03-06  9:32             ` Georg Bauhaus
2008-03-06 18:05               ` Eric Hughes
2008-03-06 22:41                 ` Ludovic Brenta
2008-03-07 10:51                   ` Georg Bauhaus
2008-03-07 20:09                     ` Eric Hughes
2008-03-03 12:42 ` Stephen Leake
2008-03-04 13:50   ` Dr. Adrian Wrigley [this message]
2008-03-04 16:56     ` Eric Hughes
2008-03-04 16:44   ` Eric Hughes
2008-03-05 13:11     ` Stephen Leake
2008-03-05 21:41       ` Eric Hughes
replies disabled

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