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: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public From: Bertrand Meyer Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/08/19 Message-ID: <33F9C7BD.794BDF32@eiffel.com>#1/1 X-Deja-AN: 265293641 References: <5siqrr$3of@jupiter.milkyway.org> <5smgts$p68$1@miranda.gmrc.gecm.com> <33EFCCE4.4CE0@flash.net> <5sq3fh$frg@wdl1.wdl.lmco.com> Organization: Interactive Software Engineering Inc. Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-08-19T00:00:00+00:00 List-Id: Robert Dewar wrote: > 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 :-) You obviously must know better. The postcondition, if it needs to be expressed, is something like "string XXX" [the argument to the routine] "has been appended to the output". With the proper model this is easy to express formally. -- Bertrand Meyer, President, ISE Inc. ISE Building, 2nd floor, 270 Storke Road, Goleta CA 93117 805-685-1006, fax 805-685-6869, http://www.eiffel.com, with instructions for free download == ISE Eiffel 4: Eiffel from those who invented it ==