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,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-19 08:01:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: Fri, 19 Oct 2001 16:53:45 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9qpf0c$5ko$1@news.huji.ac.il> References: <9qctpn$lil$1@news.huji.ac.il> <3nCy7.29644$ev2.35903@www.newsranger.com> <9qfgla$7sb$3@news.huji.ac.il> <9qnflg$pm$1@news.huji.ac.il> <3BCF57C8.DE99D9C@boeing.com> NNTP-Posting-Host: di2-7.dialin.huji.ac.il X-Trace: news.huji.ac.il 1003503437 5784 132.64.12.7 (19 Oct 2001 14:57:17 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Fri, 19 Oct 2001 14:57:17 +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:14940 Date: 2001-10-19T16:53:45+02:00 List-Id: Stephen Leake wrote in message news:un12nod47.fsf@gsfc.nasa.gov... > Jeffrey Carter writes: > > > Ehud Lamm wrote: > > > > > > What I dodn't like is the need for several, possibly nested, instantiations > > > simply to get a simple queue or hash table. > > > > I wholeheartedly agree. Wright's posting here a few days ago of the > > sequence of instantiations needed to obtain a simple structure with the > > Booch components clearly indicates that they fail this requirement. > > This is easy to say. But can you provide an alternative, that still > allows the container to handle all reasonable Ada types? > > People have made the same complaint about my library. But that > complexity is simply a reflection of the complexity that Ada supports. > I don't see a simple alternative that is not so restrictive as to be > useless. Well, you could maintain several copies of the code, each > accepting slightly different generic formal types. But _I'm_ not going > to do that! > Yep. I agree entirely.

But since I find this point to be important for using the library in education, I wanted to hear ideas and possible solutions.

What I was thinking about was having wrapper packages, for the most important cases. I don't think this will turn out to be a mjor overhead. And it should ease the learning curve, even for experts, since these packages will be, in essence, example code... Ehud