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-12 03:21:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!news-mue1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: C bug of the day Date: Thu, 12 Jun 2003 10:21:32 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> NNTP-Posting-Host: d2-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1055413292 11427 134.91.1.15 (12 Jun 2003 10:21:32 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Thu, 12 Jun 2003 10:21:32 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/831)) Xref: archiver1.google.com comp.lang.ada:39041 Date: 2003-06-12T10:21:32+00:00 List-Id: Kevin Cline wrote: : Vinzent Hoefler wrote in message news:... :> kanze@gabi-soft.fr wrote: :> :> > I'd rather have a language :> >in which all of the defaults were fundamentally safe, but with the :> >freedom to override them if you had special constraints, or even in :> >cases where you came across a case which the language authors hadn't :> >considered. I don't know such a language, however; it may exist :> >somewhere, but if it does, it certainly isn't very popular or wide :> >spread. :> :> And that's been posted to comp.lang.ada? ;-) : : Sorry, Ada doesn't solve this problem. Ada has no equivalent to the : C++ STL. And the STL is there to allow you to override the safety defaults, whilst in Ada you cannot override safety defaults? At least the latter seems completely wrong to me, actually. 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. : Ada is fine as long as you are happy to program using only arrays. : Beyond that, you are stuck searching the web for some public domain : components and hoping they have been debugged enough to be reliable, Most of the components are licensed, not in the public domain, at least not in the US public domain, afaict. And the old Booch components were accompanied by a huge book (1987) full of careful analysis and presentation. Doesn't make sense to me to assume they might not have been debugged enough, or be unreliable. Likewise, what makes you assume that the new Booch components ("based on Mr. Booch's more recent C++ design"), which also seem to have been actively developed for some years now, cannot at least be compared to the non-theoretical STL implementations out there? Despite the different approach taken, there is at least no #ifdef hell in these components. (Have you ever tried to write standard conforming STL code using a compiler like Comeau's and then port that standard conforming code to some other "C++ compiler" ;-) BTW, I don't feel forced to use arrays a lot, despite their outstanding features, when compared to non-STL C++ "arrays". : or writing your own and hoping that you don't somehow screw up : new/unchecked deallocation. Why is there Boost, if the STL solves all problems? Why are there patterns if the STL solves all problems? Which patterns implementation is standardised with C++? Last but no least, what kind of safety and reliability do you get from C++ with or without STL when it comes to organizing your software around processes, resources, and data exchange between them? How does the C++ standard guarantee portability of this kind of software? Does it? // Georg