Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 13 Jul 2011 13:00:37 -0500 Date: Wed, 13 Jul 2011 11:00:28 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer,comp.lang.c Subject: Re: Arithmetic overflow checking References: <36bp17tf79bhbd6hovf9srhmcs1jh1c040@4ax.com> <693db00d-83be-4830-a1fc-262d9d34d672@z15g2000pre.googlegroups.com> <9d33ce51-1f6a-4782-8098-a051456532ca@m6g2000prh.googlegroups.com> <8vlr17d90u9cb63hf64hhstaoamdgsb5je@4ax.com> In-Reply-To: <8vlr17d90u9cb63hf64hhstaoamdgsb5je@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 38 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 75.11.53.97 X-Trace: sv3-FAgQWqhX5+Ljdnrg8PiHUTOR9er+0u3BeL6V6N6fG7fw0gzsTCtm8sFoal4LF9izyzRuW+pyh/N0nDf!Mhi9GV2NWrg3hGOUghMiWjNs08RAHTbznq19ZYPJb0SH0fJd5e9JheUCi5fqZToLt9p1Bveke95H!e/Yre45v6VN9sK6oeWt9RDqlhmMn1wI2EeHatyUTDwM= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2969 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6166 comp.lang.c:8240 On 7/13/2011 10:38 AM, Gene Wirchenko wrote: > On Tue, 12 Jul 2011 16:09:04 -0700 (PDT), lewbloch > wrote: > >> Gene Wirchenko wrote: >>> lewbloch wrote: >>>> Martin Gregorie wrote: >>> >>> [snip] >>> >>>>> [1] The instrument causing the problem was an unmodified Ariane 4 SRI >>>>> which raised an out-of-limits exception when the normal Ariane 5 >>>>> trajectory exceeded a permitted Ariane 4 horizontal velocity limit. >>> >>> ...the Ariane 5 having more powerful engines. >>> >>>> In other words, this was a case where there *was* an out-of-range >>>> exception, thus it makes the exact opposite point to the one Gene >>>> presumably wanted to support. >>> >>> The data I read was that the exception was not handled. IIRC, >>> debugging got interpreted as navigational data. > >> Precisely. There was an exception, and it was not handled. Having >> the exception was not enough. > > No surprise there. Most of us understand that exceptions have to > be handled as well as thrown. I think the lesson we need to learn from the Ariane failure is that adding a check removes one type of risk, but the cost of two forms of additional risk: 1. The check gives a false positive result. 2. There is a bug in the handling of the error report. Patricia