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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public From: Robert Dewar Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/22 Message-ID: <7kp3f2$m9i$1@nnrp1.deja.com>#1/1 X-Deja-AN: 492657426 References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <3766650F.705125B7@pwfl.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 129.37.71.107 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Jun 22 22:41:40 1999 GMT Newsgroups: comp.lang.ada,comp.lang.java.programmer X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-06-22T00:00:00+00:00 List-Id: In article <3766C842.E1EAB60A@pwfl.com>, diespammer@pwfl.com wrote: > The people burnt to a crisp in the crash of an > airplane aren't going to care that "The Programmer Should Have > Read The > Standard Better." Dead is just as dead if it was the compiler > that was > at fault. What the programmer *should* do is mostly > irrelevant. What the > programmer is *likely* to do is go with all of his years of > grade school > arithmetic and casually believe that X := X + 1 will yield the > expected result. This is unrealistic. The idea that safety critical software depends on programmers doing the right thing on the basis of "casual belief" is way off the mark. In fact an unanticipated overflow causing an exception may be as dangerous, if not MORE dangerous than an ignored overflow (Ariane 5 was a nice demonstration of this). In practice in safety critical software, formal verification and certification techniques are used to ensure that NEITHER event happens. Don't worry, when you fly on a plane, regardless of the language used, you are not at the mercy of programmers doing *anything* casually. Safety critical software just does not work this way! Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.