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!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe3-win.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: default formal parameters in generic declarations User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Message-Id: Newsgroups: comp.lang.ada References: <9b3bac4d-5ae1-4a1b-a81e-9aa9ae1843e0@e31g2000hse.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 04 Mar 2008 13:50:59 GMT NNTP-Posting-Host: 81.102.134.173 X-Complaints-To: http://netreport.virginmedia.com X-Trace: newsfe3-win.ntli.net 1204638659 81.102.134.173 (Tue, 04 Mar 2008 13:50:59 GMT) NNTP-Posting-Date: Tue, 04 Mar 2008 13:50:59 GMT Organization: NTL Xref: g2news1.google.com comp.lang.ada:20179 Date: 2008-03-04T13:50:59+00:00 List-Id: On Mon, 03 Mar 2008 07:42:40 -0500, Stephen Leake wrote: > 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, > ...); 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