home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!cunews!cunews!knight
- From: knight@mrco.carleton.ca (Alan Knight)
- Subject: Re: Object hidden state and side effects
- Message-ID: <knight.724903894@cunews>
- Sender: news@cunews.carleton.ca (News Administrator)
- Reply-To: knight@mrco.carleton.ca (Alan Knight)
- Organization: Carleton University
- References: <1992Dec16.65250.10645@kei.is.s.u-tokyo.ac.jp> <1992Dec16.175126.14968@midway.uchicago.edu> <BzIFGp.K7@cs.uiuc.edu> <1992Dec20.155809.14236@midway.uchicago.edu>
- Date: Mon, 21 Dec 1992 02:11:34 GMT
- Lines: 25
-
- In <1992Dec20.155809.14236@midway.uchicago.edu> dave@alex.uchicago.edu (Dave Griffith) writes:
-
- >I've never said anything about bitwise comparison. Equality on values might
- >certainly be user defined. Even in these cases it should have restrictions,
- >e.g. it should be symmetric, reflexive, transitive, and substitutabilty of
- >equals for equals should hold in all cases.
-
- As I pointed out in an earlier posting, equality for IEEE standard
- floating point numbers is not reflexive (NaN != Nan). It may well be
- possible to come up with violations of other properties.
-
- > Equality on objects would
- >be identity.
-
- I continue to find this totally unacceptable. I define objects with
- user-specified equality conditions all the time, and I mean objects in
- your sense, having mutable state.
-
- --
- Alan Knight knight@mrco.carleton.ca +1 613 788 2600x1027
- Dept. of Mechanical and Aerospace Engineering
- Carleton University, Ottawa, Ontario, Canada, K1S 5B6
-
-