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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a8985ede8fe3d111 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-05 04:11:57 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!dinews.epfl.ch!di.epfl.ch!Magnus.Kempe From: Magnus.Kempe@di.epfl.ch (Magnus Kempe) Newsgroups: comp.lang.ada Subject: Re: Ada compared to C++ Date: 5 Oct 1994 08:44:25 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <1994Oct5.091826@di.epfl.ch> References: <36h4pc$9dd@starbase.neosoft.com> <36msgr$qq2@starbase.neosoft.com> NNTP-Posting-Host: lglsun4.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 1994-10-05T08:44:25+00:00 List-Id: cpp@netcom.com (Robin Rowe) writes: : ========================================================== : Response to Edmond Schonberg's "CONTRASTS: Ada 9X and C++" : ========================================================== : ... : : What does Ada do when an array is overrun? What does it do if : exceptions are turned off? Well, if you don't know, how can you claim to answer a comparison of Ada and C++ ? : Does Ada support the concept of private, protected, and public : class members? Again, if you don't know... : The features supported by an object-oriented programming language : are polymorphism, inheritance, and encapsulation. (See Grady Booch : if you don't believe me.) How does Ada implement each of these? If you don't know... : Containment is generally a much better form of reuse in C++ and : doesn't subvert the type system. In C++ a class is a definition of : how an object works, not the actual object. I've heard Ada doesn't : work this way. How does Ada support objects containing other : objects? If you don't know... : How does Ada handle iterators? How does Ada support containers? If you don't know... To understand and answer a comparison of two languages, one is expected to at least know both. I recommend that C++-fans learn about Ada, in order to support their judgment, and also that Ada-fans learn about C++. The best way to learn about a programming language is to read some books about it, as well as to write some code. For Ada, the Ada WWW Server contains a list of references put together by Mike Feldman (URL http://lglwww.epfl.ch/Ada/ see the section on Books and Articles). The worst way is to read Usenet news and believe everything one sees there, or to go by hearsay. Comparison is a form of judgment. Judgment requires evidence. So before one publishes or answers a comparison, one must have gathered the evidence. Thank you. -- Magnus Kempe "I know not what course others may take, but as for me, Magnus.Kempe@di.epfl.ch Give me Liberty... or give me Death!" -- Patrick Henry