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,8ff80a74f45b5cd3 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,8ff80a74f45b5cd3 X-Google-Attributes: gid103376,public From: card@syr.lmco.com Subject: Re: Visibility and access to "public" attributes Date: 1997/09/02 Message-ID: <873212609.24297@dejanews.com>#1/1 X-Deja-AN: 269532236 To: card@syr.lmco.com X-Http-User-Agent: Mozilla/3.01 (X11; U; SunOS 5.5 sun4m) X-Originating-IP-Addr: 192.91.146.35 (proxy3b.lmco.com) Organization: Deja News Posting Service X-Authenticated-Sender: card@syr.lmco.com X-Article-Creation-Date: Tue Sep 02 15:03:31 1997 GMT Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 1997-09-02T00:00:00+00:00 List-Id: I'd like to thank everyone who replied to my original post RE: visibility of attributes. I had wondered when/why one would make a class' attributes read-only rather than hiding them altogether. The answer to my question was provided by Peter Horan: >One must export parameters and functions when they >are needed to verify pre-conditions. This is an >Eiffel validity requirement (VAPE). (I am reminded >of keeping one's fingers crossed when making >promises :-)). This does not apply to features in >post-conditions and invariants, which may be more >restrictive than the client needs without harm. This makes sense. Since everything in a precondition must be visible to a class's client(s), then the client must be able to read the class's attributes (features) if they are used in the precondition(s). Thanks, Pete! - Mike --------------- Michael P. Card Lockheed Martin Ocean, Radar and Sensor Systems Division Syracuse, NY 13221 voice: (315)-456-3022 FAX: (315)-456-2414 e-mail:card@syr.lmco.com -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet