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 13:31:06 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: Mon, 15 Oct 2001 22:13:13 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9qfglb$7sb$4@news.huji.ac.il> References: <9qctpn$lil$1@news.huji.ac.il> NNTP-Posting-Host: di4-3.dialin.huji.ac.il X-Trace: news.huji.ac.il 1003177452 8075 132.64.14.3 (15 Oct 2001 20:24:12 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Mon, 15 Oct 2001 20:24:12 +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:14591 Date: 2001-10-15T22:13:13+02:00 List-Id: Lutz Donnerhacke wrote in message news:slrn9slt9m.i2.lutz@taranis.iks-jena.de... > * 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. > So we need defaults. "take a private type and supply default named operations like Assign" But, I think we should decide on the semantics. If you can use by-reference semantics, you can solv emany of these simply by instantiating with access types. This can be problematic, but where applicable cansave us a lot of trouble.. > 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. Ok. > Keep them threadsafe and multiaccessed, i.e. allow the usage of active > Iterator to create further Iterators which in turn modify the structure. I don't see any problem with this.