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,f66d11aeda114c52 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,f66d11aeda114c52 X-Google-Attributes: gid103376,public From: paul.johnson@gecm.com (Paul Johnson) Subject: Re: Design By Contract Date: 1997/09/10 Message-ID: <5v5jrf$h62$2@miranda.gmrc.gecm.com>#1/1 X-Deja-AN: 271222975 References: <34150AE7.ABE4EDD6@calfp.co.uk> Organization: GEC-Marconi Research Centre Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 1997-09-10T00:00:00+00:00 List-Id: In article <34150AE7.ABE4EDD6@calfp.co.uk>, nickle@calfp.co.uk says... >I found things like Eiffel's use of inheritance for getting access to >the facilities a little odd at first, but in practice it doesn't turn >out to be a problem. Having good names for these classes help. I agree. On the other hand, if you prefer not to pollute your namespace with all the stuff from the mixin class, you can do something like this: feature {NONE} math: expanded MATH; Now anywhere in your code you can write something like: a := math.sin (b) Its a bit like the use/with clauses in Ada. Paul. Paul -- Paul Johnson | GEC-Marconi Ltd is not responsible for my opinions. | +44 1245 242244 +-----------+-----------------------------------------+ Work: | You are lost in a twisty maze of little Home: | standards, all different.