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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Sender: malo@0x535ba1b6.boanxx18.adsl-dhcp.tele.dk Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada) References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> From: Mark Lorenzen Date: 05 Mar 2005 17:16:47 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 83.91.161.182 X-Trace: 1110039413 dtext02.news.tele.dk 175 83.91.161.182:37050 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:8651 comp.lang.c++:44174 comp.realtime:936 comp.software-eng:4467 Date: 2005-03-05T17:16:47+01:00 List-Id: "Peter Koch Larsen" writes: > > Out of curiosiy, could you give some few examples where Ada catches faults > not found by a C++ compiler. I assume - of course - code written in modern > C++: no casts, functions instead of macroes, a limited use of pointers and > so on. It serves no purpose to find small (theoretic) examples where f.x. Ada will be an advantage over C++. These examples will always be repudiated in long discussions. In order to appreciate one language over another, you need to have used it in a "real" system of a certain size. I have used both C++ and Ada in large projects and (until now) I prefer Ada over C++ (yes, the modern usage with STL, function objects and templates). Ada gives me better productivity, fewer errors and (most of all) a sense of engineering instead of programming. But you of course need to learn a language in order to judge it, so just programming small examples where you maybe touch 25% of the languages doesn't really give the language any credit. And that is the catch with using "new" languages in a commercial environment: There is no time to learn a new language and therefore no time to evaluate alternatives. Regards, - Mark Lorenzen