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 X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-13 08:13:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kanze@gabi-soft.fr Newsgroups: comp.lang.ada Subject: Re: C bug of the day Date: 13 Jun 2003 08:13:53 -0700 Organization: http://groups.google.com/ Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> <1ec946d1.0306121358.3e97731e@posting.google.com> NNTP-Posting-Host: 62.160.54.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1055517234 14488 127.0.0.1 (13 Jun 2003 15:13:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Jun 2003 15:13:54 GMT Xref: archiver1.google.com comp.lang.ada:39124 Date: 2003-06-13T15:13:54+00:00 List-Id: mheaney@on2.com (Matthew Heaney) wrote in message news:<1ec946d1.0306121358.3e97731e@posting.google.com>... > Georg Bauhaus wrote in message > news:... > > And what about the STL being possible with C++ only? Except for > > tricky and useful compile time Lisp in C++ templates, and > > ()-operator magic sugar, I don't think this is so, ask Matthew > > Heaney about Charles. > The statement that "STL is only possible in C++" is false. The > Charles library constitutes a proof-by-counterexample. > http://home.earthlink.net/~matthewjheaney/charles/ 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++. 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. -- James Kanze GABI Software mailto:kanze@gabi-soft.fr Conseils en informatique orient�e objet/ Beratung in objektorientierter Datenverarbeitung 11 rue de Rambouillet, 78460 Chevreuse, France, T�l. : +33 (0)1 30 23 45 16