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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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 From: Marin David Condic Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/21 Message-ID: <376E5AC7.8A59F622@pwfl.com>#1/1 X-Deja-AN: 492130525 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <7jt2c0$vrb@drn.newsguy.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> <3766D1CC.D712895E@itools.symantec.com> <7k8nn5$qcb$1@its.hooked.net> <3767E8A2.EF1A0570@itools.symantec.com> <7k8tv3$3gm@drn.newsguy.com> <3769506F.157411C0@mitre.org> <7kbujm$1kb@drn.newsguy.com> <7ke2dg$2a7a@drn.newsguy.com> <7kgqqd$1dai@news2.newsguy.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-06-21T00:00:00+00:00 List-Id: Samuel Mize wrote: > > However, I do agree with you on this: the fact that the language will > raise an exception does NOT inherently make software more reliable. > The software must be written to take advantage of the exceptions. > Otherwise, it's a toss-up whether catastrophe is more likely from > saturation, wrap-around or exceptions -- it's application-dependent. > Absolutely! Thank you! The software must be designed within the bounds of failure mode analysis and the best behavior of the software is going to be entirely dependent on the application at hand. Exception raising, etc. is going to do *nothing good* for you unless you first look at how the system might fail and what the consequences will be in the face of that failure. You have to spend an enormous amount of time throwing out scenarios of possible failure and asking what sort of accommodations you might make to mitigate the failure. I was once seriously asked: "Suppose that the CPU fails, what can you do in software to detect this and accommodate it?" MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.*** Visit my web page at: http://www.mcondic.com/