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: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: jsa@alexandria.organon.com (Jon S Anthony) Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/07/24 Message-ID: #1/1 X-Deja-AN: 258591482 Distribution: world References: Organization: PSINet Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-07-24T00:00:00+00:00 List-Id: In article donh@syd.csa.com.au (Don Harrison) writes: > :> :That's neat. Except that a postcondition will be part of the contract > :> :(i.e. specification) for the routine, so the caller will know what to > :> :expect. Your code is part of the implementation. > :> > :> I agree - it's belongs in a contract. > : > :That is trivial to provide: > : > :function Do_Something_Within_Time_Slice ( > : ... > : Duration_Before_Abort : Our_Duration_Limits := 0.010; > : ... > : ) return Whatever_Type; > > Sorry, I don't see how this acheives anything resembling the Eiffel > contract.. Who cares about the "Eiffel contract"??? The "Eiffel contract" is no where to be seen in this sub-discussion. BFD to the "Eiffel contract". The fact is, this is a contract with the client which describes the piece of possible behavior in question. Actually, I don't even think you can express this sort of capability in direct Eiffel. So, that point is moot (yes, Robert, I know this is an abuse of "moot" :-) /Jon -- Jon Anthony OMI, Belmont, MA 02178 617.484.3383 "Nightmares - Ha! The way my life's been going lately, Who'd notice?" -- Londo Mollari