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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8a4455177648cb9e X-Google-Attributes: gid103376,public From: pfk@schnecke.offl.uni-jena.de (Frank Klemm) Subject: Re: Idea: Array Boundary Checks on Write Access Only Date: 1998/07/09 Message-ID: #1/1 X-Deja-AN: 369878224 X-Nntp-Posting-Host: schnecke.offl.uni-jena.de Sender: news@fsuj50.rz.uni-jena.de (News System) References: <35851B64.5BF271C4@cl.cam.ac.uk> <35858FBC.4E5E@praxis-cs.co.uk> <358D324F.7848A4A8@cl.cam.ac.uk> Organization: Pbzchgre fvaq hasruyone, Qnir Newsgroups: comp.lang.ada Date: 1998-07-09T00:00:00+00:00 List-Id: On 22 Jun 1998 00:44:07 -0400, Robert Dewar wrote: >Markus said > ><exception. There would have been no problem here if this piece of >navigation system control code had been compiled without exceptions. >>> > >Indeed, and I often use this case as an example of the important fact that >runtime checking does not necessarily improve safety, and indeed if exceptions >can be raised, it is vital that VERY careful analysis of all exceptional >situations take place to make sure they are handled. In the absence of >such careful analysis, running with checks on can be much more dangerous >than with checks off. Very often, a locally violated constraint will just >cause a local wrong value with checks off, which may not be critical, >especially if the wrong value is in connection with a non-critical function. >But raising an exception can have disastrous global effects if the exception >is not properly handled. > Do no check for a condition if you're not known how to handle it! -- Frank Klemm /------\ /-----------------------------------------------------\ | eMail: || pfk@uni-jena.de | home: pfk@schnecke.offl.uni-jena.de | | Tel: || | home: +49 (3641) 390545 | | sMail: || Frank Klemm, Ziegesarstr. 1, D-07747 Jena, Germany | \------/ \-----------------------------------------------------/