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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88093378be1184d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-09 08:34:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: List Container Straw Man Date: Fri, 9 Nov 2001 18:24:40 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9sh082$bp0$1@news.huji.ac.il> References: <9s941p$11mrei$4@ID-25716.news.dfncis.de> <9s99tt$pdb$1@nh.pace.co.uk> <9s9s8p$11vt7l$1@ID-25716.news.dfncis.de> <9scke9$12jb14$4@ID-25716.news.dfncis.de> NNTP-Posting-Host: di2-101.dialin.huji.ac.il X-Trace: news.huji.ac.il 1005323331 12064 132.64.12.101 (9 Nov 2001 16:28:51 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Fri, 9 Nov 2001 16:28:51 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.google.com comp.lang.ada:16137 Date: 2001-11-09T18:24:40+02:00 List-Id: Stephen Leake wrote in message news:u3d3nrkbe.fsf@gsfc.nasa.gov... > Well, my library (http://users.erols.com/leakstan/Stephe/Ada/sal.html) > requires three or four instantiations to get a list, and I don't find > that 'onerous'. But others do, particularly students. So I think it is > worth making the attempt to come up with a useful list package that > only requires one instantiation. > Since we seem to be discussing various Ada features... I was always ready to defend Ada's lack of automatic instnatiation, but I seem to be loosing me resovle. Maybe some one can re-convince me ;-) For the purposes discussed here, I would be happy with a solution allowing me to create partial instantaions, so that only the top level would need to be instantiated by the user. (This is close to "template specialization", I think, but not exactly the same thing). Is there any elegant idiom for doing this? (If I am not clear, I'll try to post an example). Ehud