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: Nick Leaton Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/07/18 Message-ID: <33CF2A80.6873@calfp.co.uk>#1/1 X-Deja-AN: 257544502 X-NNTP-Posting-Host: calfp.demon.co.uk [158.152.70.168] References: <33CD1722.2D24@calfp.co.uk> <33CE082E.65FF@calfp.co.uk> Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-07-18T00:00:00+00:00 List-Id: Jon S Anthony wrote: > > In article <33CE082E.65FF@calfp.co.uk> Nick Leaton writes: > > > Why would you want to place procedural code in an assertion? It is the > > same as saying you want to have a side effect of a function. If it is > > Unless you are using a pure functional or declarative language, you > are writing "procedural" code. Eiffel is about as close to either of > these as Ada or Pascal or C. So, if you are writing your assertions > in Eiffel, you are writing procedural code. > > If you really do want functional code - go use a _functional_ language! Check the post I was replying too! Procedure - does something Function - returns the value of something. The original post refered to have some critical procedure being placed in an assertion, and the problem of then diasabling the assertion! -- Nick