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,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-13 23:10:59 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!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: C bug of the day Date: 14 Jun 2003 07:10:14 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> <1ec946d1.0306121358.3e97731e@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1055571058 16141 62.49.19.209 (14 Jun 2003 06:10:58 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 14 Jun 2003 06:10:58 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 Xref: archiver1.google.com comp.lang.ada:39154 Date: 2003-06-14T07:10:14+01:00 List-Id: kanze@gabi-soft.fr writes: > I'm not familiar enough to be sure, but from what I know, certain > aspects of the STL *are* impossible in Ada. I rather think that > this is a feature of Ada, however, and not a problem. Can you get > undefined behavior from an iterator because somewhere else in the > code, someone has inserted an element into the underlying container? > > In this sense, I suspect that the STL is only possible in C++. I think it would be very easy to get undefined behaviour in these circomstances, whatever the implementation language! (I think you possibly mean "erratic" rather than "undefined", it would be possible to have stable, desirable behaviour and just not define it!) > Someone else mentionned the Booch components. I used these in C++, > and they were far superior to the STL (in C++, anyway). If they are > still available for Ada, this would be an argument in favor of Ada, > I would think. Even I wouldn't have gone as far as that! but see http://www.pushface.org/components/bc/