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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4d2a71c8801ecab1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-05 10:19:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!peernews!peer.cwci.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: Common sense... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 5 Jul 2002 18:19:00 +0100 NNTP-Posting-Host: 80.5.140.234 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1025889572 80.5.140.234 (Fri, 05 Jul 2002 18:19:32 BST) NNTP-Posting-Date: Fri, 05 Jul 2002 18:19:32 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:26880 Date: 2002-07-05T18:19:00+01:00 List-Id: Hi, What's the right thing to do in the following scenario concerning iterators and lists? A list is in use by three iterators, A, B and C. A is at the position preceding B and C, C calls the remove subroutine on that node and moves on. The nodes iterator count which was 2 is decreased to 1. B is the only iterator using that node, but A wants to moves to the next position before B exits the node (if B had exited the node prior to A calling next, there'd be no problem). Where does A go? Does it go to the node at B or does it go to the one after B? I'd say A skips the node but I've got to go, Dinners out, and so can't explain my thoughts on why until later! Thanks, Chris