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,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-02 15:53:00 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!uunet!sac.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: List container strawman 1.1 X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3BE32D5A.E53D893C@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3BE301D1.4010106@telepath.com> <3BE30DF7.3F2E6698@san.rr.com> Mime-Version: 1.0 Date: Fri, 2 Nov 2001 23:33:46 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:15711 Date: 2001-11-02T23:33:46+00:00 List-Id: Darren New wrote: > > Ted Dennison wrote: > > -- Remove the element at the given location, and advance Location to > > the next > > -- element. > > -- If Location=Done_Iterating then No_Item will be raised. > > -- If Location=First, then Location will be set to the new First. > > -- If Location=Last, then Location will be set to Done_Iterating. > > 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. While I agree with your sentiments, Next and Previous *are* functions. -- Jeffrey Carter