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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-02 23:03:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3BE301D1.4010106@telepath.com> <3BE30DF7.3F2E6698@san.rr.com> Subject: Re: List container strawman 1.1 Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Sat, 03 Nov 2001 02:03:10 EST Organization: http://www.newsranger.com Date: Sat, 03 Nov 2001 07:03:10 GMT Xref: archiver1.google.com comp.lang.ada:15720 Date: 2001-11-03T07:03:10+00:00 List-Id: In article <3BE30DF7.3F2E6698@san.rr.com>, Darren New says... > >Ted Dennison wrote: >One problem with this is removing (say) the last three elements from a >list. Since you always assume you want to go forward, it is more >difficult to remove the last three than the first three, particularly >since "Next" and "Previous" aren't functions. The solution I would lean toward for this would be to provide another remove (Perhaps the current one would be renamed "Delete", since it behaves like the "Delete" key on a PC). Another possibility would be to provide a flag to indicate where to move the iterator. >Adding an "Insert_Sorted" function that parallels the sort function >would allow the same structure to be used to maintain sorted lists. Good point. >Hmmm... Maybe I should write up a whole counterproposal kind of thing, >just to see how it flies? Feel free. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.