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!news.maxwell.syr.edu!transit.news.xs4all.nl!195.241.76.212.MISMATCH!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail 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> <87r7iu85lf.fsf@insalien.org> <87is4598pm.fsf@insalien.org> From: Ludovic Brenta Date: Sat, 05 Mar 2005 23:59:08 +0100 Message-ID: <871xat8zsz.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:ZQfa2agNt5syyrctpzSVgxSfIzM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 05 Mar 2005 23:58:45 CET NNTP-Posting-Host: 83.134.241.69 X-Trace: 1110063525 dreader2.news.tiscali.nl 44106 83.134.241.69:34548 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:8694 comp.lang.c++:44243 comp.realtime:978 comp.software-eng:4509 Date: 2005-03-05T23:58:45+01:00 List-Id: "Peter Koch Larsen" writes: > If you disregard the controversial "export" keyword, most recent > compilers are close to being 100% conforming (but might not be so > "out-of-the-box"). Good. What kind of assurance does a C++ compiler user have? > Do you also require parenthesis when mixing addition and > multiplication? I do not like that degree of nannying - a matter of > taste, surely. No, just when mixing "and" and "or". >> For a more general discussion of physical quantities in Ada, see: >> >> http://home.t-online.de/home/Christ-Usch.Grein/Ada/Universe.html > > I believe I will prefer the C++ solution - a template that copes with all > this stuff. Read the paper first; it does use templates (generics). >> What other mechanism would you suggest? > > Termination of the program. Some might argue that they can't > tolerate such an event. But can such an environment tolerate a > faulty running program? That's what an unhandled exception results in. In avionics, where we have no operating system and no run-time system, exceptions cannot propagate and thus always result in program termination. When testing the program, we prove that no exception is ever raised. -- Ludovic Brenta.