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: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/08/26 Message-ID: <5tu8se$433$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 268581584 References: <5siqrr$3of@jupiter.milkyway.org> <5smgts$p68$1@miranda.gmrc.gecm.com> <33EFCCE4.4CE0@flash.net> <5sq3fh$frg@wdl1.wdl.lmco.com> Organization: Comp Sci, RMIT University, Melbourne, Australia. NNTP-Posting-User: ok Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-08-26T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) writes: >What should be the post condition after outputting an error message >from a compiler? >pragma Assert (programmer now understands what they did wrong); >You need a *really* clever language to test that one (well I suppose the >assertion routine executed at runtime could ask the programmer whether >he understood :-) That won't do as a postcondition for error messages. One of my all-time favourite error messages came from the Burroughs ESPOL compiler: "If you know what it means, implement it." Such a message does not imply that the programmer did anything wrong at all. (Although it _usually_ meant that.) -- Four policemen playing jazz on an up escalator in the railway station. Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.