From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: default formal parameters in generic declarations
Date: Mon, 03 Mar 2008 07:42:40 -0500
Date: 2008-03-03T07:42:40-05:00 [thread overview]
Message-ID: <u1w6sm11b.fsf@stephe-leake.org> (raw)
In-Reply-To: 9b3bac4d-5ae1-4a1b-a81e-9aa9ae1843e0@e31g2000hse.googlegroups.com
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,
...);
You are requesting the ability to do this instead:
package My_Instance is new Generic_Package
(foo => Bar,
...);
I agree it's a little nicer, but that big a deal.
--
-- Stephe
next prev parent reply other threads:[~2008-03-03 12:42 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 [this message]
2008-03-04 13:50 ` Dr. Adrian Wrigley
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