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-15 07:40:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: Mon, 15 Oct 2001 14:39:55 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <9qctpn$lil$1@news.huji.ac.il> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1003156795 5824 217.17.192.37 (15 Oct 2001 14:39:55 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 15 Oct 2001 14:39:55 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14535 Date: 2001-10-15T14:39:55+00:00 List-Id: * Ehud Lamm wrote: >* From my experiens the item type is best accepted as a generic paramter (I >say this, before anyone suggests and "Object" type, and we start fighting >over MI) type Item is (<>) tagged abstract limited private; in order to build collections of tasks and more. type Item is exception; *grin* Bute seriosly it's necessary, that the same item occurs in several collections at once. It must be possible to build stacks of lists and hold a task element in a list and a hash simultaniously. Good luck. >* The library should offer Algortihms (in STL-speak): sorting, searching > etc. Of course ... provide algorithms with different size/time constraints. _Prove_ them correctly and derivate the size/time constraints. Do not assume special derivations for those algorithms, so allow algorithms over native Ada types. >* Standard iteration schemes over the various containers (I want both active >and passive versions) Keep them threadsafe and multiaccessed, i.e. allow the usage of active Iterator to create further Iterators which in turn modify the structure. >* Since I am thinking about using the library in education, I'd prefer to > make isntantaion as easy as possible (possibly, by supplying > pre-instantiated versiosn). Exactly. > I also prefer to hide the tagged nature of interface relationships Tagged nature?