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: 109fba,582dff0b3f065a52 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,582dff0b3f065a52 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-10 07:12:00 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!skynet.be!skynet.be!louie!not-for-mail Sender: - From: Bart.Vanhauwaert@nowhere.be Subject: Re: How Ada could have prevented the Red Code distributed denial of service attack. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ References: <3b690498.1111845720@news.worldonline.nl> <9kbu15$9bj@augusta.math.psu.edu> <9kbvsr$a02@augusta.math.psu.edu> <3B69DB35.4412459E@home.com> <9kp9n7$ivm$1@nh.pace.co.uk> <3B73337F.862F8D93@home.com> User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17-21mdksecure (i686)) Date: Fri, 10 Aug 2001 14:45:30 +0200 Message-ID: NNTP-Posting-Host: 194.78.202.248 X-Trace: 997452716 reader0.news.skynet.be 54319 194.78.202.248 X-Complaints-To: abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:11759 comp.lang.c:73397 comp.lang.c++:81536 Date: 2001-08-10T14:45:30+02:00 List-Id: Warren W. Gay VE3WWG wrote: > Don't forget that in Ada, there are Booch components that sports > iterator types that can be used in a manner that is similar. But > I think the thing that has been lost in all of this is that you > are comparing C++ _STL_ features with Ada _language_ features. The STL is an inherent part of the C++ Language. I have before me International Standard ISO/IEC 14882 (Programming languages - C++) chapter 17 up to chapter 27 are dedicated to the different libraries that are part of C++. There is no denying they are part of standard C++. (And they are part of what made me choose C++ over C btw) > It is true that unless they did something wacky like make it virtual, the > C++ inline ++ operator is usually cheap. Look, you obviously don't know C++ that well, so please refrain from going into details and trying to pin C++ as a potentially non-optimizeable language on your assumptions which are FALSE. There is no question of virtual dispatch in this case as any junior C++ programmer will be able to tell you. > The biggest difficiency here though is that C++ programmers must use STL > containers to buy any sort of safety. It is simply unnecessary to resort > to a Vector container in Ada for safety. Naked arrays in Ada have > all the protection and convenience one could ask for. It is also > easier to read the code that uses it, and hence makes code audits > much easier. So what? Does that matter for me, as a user of the platform? Not at all. So it doesn't enter the balance of advantages/disadvantages of C++. cu bart -- http://www.irule.be/bvh/