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-03 10:59:02 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3BE43E6D.109111F4@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 References: <3BE301D1.4010106@telepath.com> <3BE31DD5.FF96AFE0@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 03 Nov 2001 18:59:01 GMT NNTP-Posting-Host: 209.86.204.110 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1004813941 209.86.204.110 (Sat, 03 Nov 2001 10:59:01 PST) NNTP-Posting-Date: Sat, 03 Nov 2001 10:59:01 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sat, 03 Nov 2001 10:55:03 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:15745 Date: 2001-11-03T18:59:01+00:00 List-Id: Ted Dennison wrote: > > In article <3BE31DD5.FF96AFE0@san.rr.com>, Darren New says... > > > >I think there are some ideas that might be worthwhile there. For > >example, I don't see any good reason for procedures like Remove to > >require both the list and the iterator. I also think that it may be a > > You're right. I'm used to implementing the iterator as a pointer for simplicity, > and I just put that idiom in without thinking about it. I don't see any good > reason why that can't be part of the iterator either. A reason to include the list with the Position is so you can ensure that the user is not by accident using a pointer to a different list than desired, but it's more commonly done so you can adjust the list's first or last pointer if the first or last node is deleted. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail