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,a644fa9cd1a3869a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-10 20:06:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!ppp-1-57.cvx6.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container: Insert and Delete Date: Sun, 11 Nov 2001 04:00:14 -0000 Message-ID: <9sktgm$134npc$3@ID-25716.news.dfncis.de> References: <3BECA3B7.5020702@telepath.com> <9sjf4n$odm$1@news.huji.ac.il> <9sjkc7$145mhb$1@ID-25716.news.dfncis.de> <3BEDACC0.9A314B54@acm.org> NNTP-Posting-Host: ppp-1-57.cvx6.telinco.net (212.1.156.57) X-Trace: fu-berlin.de 1005451607 36855596 212.1.156.57 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:16268 Date: 2001-11-11T04:00:14+00:00 List-Id: "Jeffrey Carter" wrote in message news:3BEDACC0.9A314B54@acm.org... > I recall that I couldn't understand your post. That may just be me, but > I recall that no one else seemed to be able to understand your post > (including you), and my request for an example that actually compiles > has resulted in nothing so far. Hold your horses! As quick as I can. Phew. :-( > Mathematically, lists are defined in terms of positions and insertions > and deletions. I don't know what you're talking about, but it isn't a > list. We're programmers, Jeff, not mathematicians. We don't have to worry about what the mathematical definition of a list is. What we do have to worry about is what is: (a) useful from a user's point of view; (b) practical from an implementational point of view. My suggestion that insertions and deletions be positioned by specifying an integer (starting at 1 for the first item in the list) satisfies (a), I think, but not necessarily (b), depending on the implementation. However, I'm pretty sure that trying to do insertions and deletions while iterating through a list fails both (a) and (b) miserably. That's what I was trying to get across. -- Best wishes, Nick Roberts