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,cda33fc7f63c2885 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-17 17:46:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: list strawman Date: 17 Feb 2002 20:43:22 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <87ofiof8ta.fsf@deneb.enyo.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1013996872 13089 128.183.220.71 (18 Feb 2002 01:47:52 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 18 Feb 2002 01:47:52 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:20099 Date: 2002-02-18T01:47:52+00:00 List-Id: Florian Weimer writes: > Stephen Leake writes: > > > I've done a priliminary implementation of > > http://www.telepath.com/dennison/Ted/Containers-Lists-Unbounded.ads.html > > using SAL lists as the base. > > While working on test cases for a similar list implementation, I > discovered that it isn't clear what should happen if one tries to > insert the same list into itself using the iterator-based Insert > procedure. Yes, this could easily lead to an infinite loop. I suggest testing for this case, and raising some exception. > The specification seems to allow it, but to me, it seems that this > feature is not useful in practice and just adds unnecessary > overhead. Which feature? The whole idea of inserting a list using an iterator? or just inserting a list into itself? What overhead? Testing for the special case? That's really small. -- -- Stephe