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.6 required=5.0 tests=BAYES_05,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public From: Ken Garlington Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/07/23 Message-ID: <33D6A453.A9C@flash.net>#1/1 X-Deja-AN: 258552511 References: <33CE5507.71A0@XYZZYcalfp.com> Organization: Flashnet Communications, http://www.flash.net Reply-To: kennieg@flash.net Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-07-23T00:00:00+00:00 List-Id: Don Harrison wrote: > > Richie Bielak wrote: > > :Samuel Tardieu wrote: > : > :[...] > :> > :> Well, I find the corresponding Ada code readable enough: > :> > :> select > :> delay 0.010; -- The 10ms you were talking about > :> raise Timeout_Failure; -- Raise an exception, or do anything else > :> -- you need (use a fast version of > :> -- your computation for example). > :> then abort > :> [...your code here...] -- This piece of code will be > :> -- aborted if it is not terminated within > :> -- the 10ms you required above. > :> end select; > :> > : > :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. However, if this is an actor task, there is no contract (in any language; it would not be called explicitly by other parts of the application). If it is an agent or server task, the comment shown above would be associated in the task specification with the particular entry(ies) it affected. > > Don. > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Don Harrison donh@syd.csa.com.au