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: doylep@ecf.toronto.edu (Patrick Doyle) Subject: Re: Design By Contract Date: 1997/09/06 Message-ID: #1/1 X-Deja-AN: 270147681 X-Nntp-Posting-Host: skule.ecf Sender: news@ecf.toronto.edu (News Administrator) References: Organization: University of Toronto, Engineering Computing Facility Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 1997-09-06T00:00:00+00:00 List-Id: In article , Jon S Anthony wrote: > >Eiffel's selective export is really much more like the granularity you >get (and the attendant problems from) C++ friendship. Perhaps it's "more like" but it's certainly very, very different. C++ has no granularity in its selective exports: you're either a friend or you're not. Either you're breaking encapsulation or you're not. In Eiffel, it's a matter of presenting different interfaces to different classes, and the mechanism is precise enough that encapsulation is maintained in all cases--just *different* encapsulations. -PD -- -- Patrick Doyle doylep@ecf.utoronto.ca