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!newsread.com!news-xfer.newsread.com!nntp.abs.net!uunet!ash.uu.net!newsfd02.forthnet.gr!not-for-mail From: Ioannis Vranos 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) Date: Wed, 09 Mar 2005 02:02:29 +0200 Organization: FORTHnet S.A., Atthidon 4, GR-17671 Kalithea, Greece, Tel: +30 2109559000, Fax: +30 2109559333, url: http://www.forthnet.gr Message-ID: <1110326559.761940@athnrd02> 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> <87r7iu85lf.fsf@insalien.org> NNTP-Posting-Host: athnrd02.forthnet.gr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: athprx02.forthnet.gr 1110326561 2677 193.92.150.73 (9 Mar 2005 00:02:41 GMT) X-Complaints-To: abuse@forthnet.gr NNTP-Posting-Date: Wed, 9 Mar 2005 00:02:41 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en In-Reply-To: Cache-Post-Path: newsfd02!unknown@ppp10-adsl-11.ath.forthnet.gr Xref: g2news1.google.com comp.lang.ada:8895 comp.lang.c++:44676 comp.realtime:1090 comp.software-eng:4646 Date: 2005-03-09T02:02:29+02:00 List-Id: John Hudak wrote: > Exactly - because not every programmer is well organized to keep all the > nuances in their head, and observe them when coding. Furthermore, when > components are integrated and one component talks to another is when the > big debugging problems surface. One has to look at the > history/motivation of Ada development versus that of C/C++...Ada > certified compilers and tools strictly enforce the semantics of the > language. It has been my experience that there is a lot of variability > in C/C++ compilers in how through language semantics are adhered to. There is no variability concerning ISO C++ features these days. A question: With .NET facilities, when one performs an invalid operation like accessing an array out of its bounds an exception is thrown and the program terminates indicating what was the problem. This is the kind of run-time safety Ada provides or is there something else? int main() { using namespace System; array ^someArray= {1,2,3,4,5,6,7,8,9,0}; someArray[10]= 7; } C:\c>temp Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at main() C:\c> -- Ioannis Vranos http://www23.brinkster.com/noicys