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.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,e01bd86884246855 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,fb1663c3ca80b502 X-Google-Attributes: gid103376,public From: "Bob Allen" Subject: Re: Interresting thread in comp.lang.eiffel Date: 2000/07/13 Message-ID: #1/1 X-Deja-AN: 645955122 References: <8ipvnj$inc$1@wanadoo.fr> <8j67p8$afd$1@nnrp1.deja.com> <395886DA.CCE008D2@deepthought.com.au> <3958B07B.18A5BB8C@acm.com> <395A0ECA.940560D1@acm.com> <8jd4bb$na7$1@toralf.uib.no> <8jfabb$1d8$1@nnrp1.deja.com> <8jhq0m$30u5$1@toralf.uib.no> <8jt4j7$19hpk$1@ID-9852.news.cis.dfn.de> <3963CDDE.3E8FB644@earthlink.net> <3963DEBF.79C40BF1@eiffel.com> <2LS85.6100$7%3.493920@news.flash.net> <8k5aru$1odtq$1@ID-9852.news.cis.dfn.de> <8k8pk2$20cab$1@ID-9852.news.cis.dfn.de> <_dS95.9945$7%3.666180@news.flash.net> <396C9C7F.D9B20E5F@baesystems.com> <396DA53D.19DDBACE@baesystems.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-MSMail-Priority: Normal Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 2000-07-13T00:00:00+00:00 List-Id: Thanks for the response, but I think I threw you off by the example. The gist of my question is how can you let a supplier off the hook if you don't care about a particular aspect of the contract. The method provides a means of doing the opposite, weakening the pre-condition and strengthen the post-condition. But I don't know how to allow a class to ignore the parts of the post-condition. Say for example a restaurant has a breakfast special for $3.99 you get 2 eggs, bacon, hash browns, toast, and grits. I don't particularly like grits, but the regular price for a breakfast with 3 eggs, bacon, hash browns and toast costs $5.00. So I order the special. They run out of grits before they fill my order. How can I let them off the hook for the grits? Remember I don't run the restaurant and cannot change their contracts. class POPs_PLACE feature breakfast(payment) Require payment = $5.00 Ensure 3 Eggs, 1 bacon, 1 hash browns, 1 toast breakfast_special(payment) Require payment = $3.99 Ensure 2 Eggs, 1 bacon, 1 hash browns, 1 toast, 1 grits Bob Allen Bob's Weekend Wonders Training and Consulting Land O Lakes, FL