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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,43f6bd9b498b66d0 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: default formal parameters in generic declarations References: <9b3bac4d-5ae1-4a1b-a81e-9aa9ae1843e0@e31g2000hse.googlegroups.com> From: Stephen Leake Date: Mon, 03 Mar 2008 07:42:40 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:dka2U9fLF+TjYXnbkcXj8awKoUo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: bb1bf47cbefe5e05e48ed23821 Xref: g2news1.google.com comp.lang.ada:20171 Date: 2008-03-03T07:42:40-05:00 List-Id: Eric Hughes 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