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,f89c9977a6e4ceda X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-09 06:04:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Missing in Booch: range operations Date: 09 Nov 2002 14:04:59 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <3dcb8eec$0$307$bed64819@news.gradwell.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1036850694 7202 62.49.19.209 (9 Nov 2002 14:04:54 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 9 Nov 2002 14:04:54 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:30636 Date: 2002-11-09T14:04:59+00:00 List-Id: porton@ex-code.com (Victor Porton) writes: > Range operations (deleting the range between two iterators, inserting > content of a container or its subrange into a position of another > container etc.) are missing in current Booch. Just to make sure that > these are not forgotten. They are missing from the BCs because they were not in the C++ BCs of which the Ada BCs are a translation. (I am on somewhat weak ground here, because the C++ iterators were defined in the concrete containers, somewhat like Charles). I don't think you can rely even on "=" being meaningfully defined for present BC iterators -- indeed, having more than one iterator over a container is odd, and dangerous if you use Delete_Item_At. > BTW, these should throw an exception if the begin and the end of the > range are from different containers. Now that I can agree with, though there are arguments the other way.