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-21 03:59:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: 20 Oct 2001 12:14:09 +0100 Organization: Pushface Message-ID: References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <3BCC6CB7.20BAA30D@boeing.com> <3BCD2EC3.3B3C4498@free.fr> <3BCD91D9.C77668AA@free.fr> <8ghz7.32783$ev2.39537@www.newsranger.com> <3BCDB29B.EBD01D8C@free.fr> <3BCE9ACE.40B6BC3D@free.fr> <3BCF106E.254BF0D6@boeing.com> <3BCF593F.1A5FD9A@boeing.com> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1003661932 nnrp-02:21363 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 20 Oct 2001 11:14:09 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:14990 Date: 2001-10-20T11:14:09+00:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) writes: > * Jeffrey Carter wrote: > >Lutz Donnerhacke wrote: > >> >By "ordered" I mean a structure where the position of an Element within > >> >the structure is determined by the value of the Element. What is the next > >> >Element in the structure if the current Element has moved? > >> > >> Wrong preconditions. You talk about arrays, but even those needs not to be > >> counted continously. Example: > > > >No, I didn't mention arrays. I'm talking about iterating over an ordered > >data structure. Some action is applied to the current Element, then to > >the next Element, where "next" is defined by the structure. > > Exactly. Where is the problem with changing the underlying structure while > iterating? Databases offer serveral isolation levels for this. If you need a database, use a database! All the component libraries I'm aware of are intended to be used for in-memory data structures and are fairly light-weight. What would the Java collections classes do under such circumstances?