home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!spool.mu.edu!wupost!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.725159898@cunews>
- Sender: news@cunews.carleton.ca (News Administrator)
- Reply-To: knight@mrco.carleton.ca (Alan Knight)
- Organization: Carleton University
- References: <1992Dec14.175402.1889@crd.ge.com> <1992Dec15.143243.16256@heeg.de> <1992Dec15.224536.13554@crd.ge.com> <BzC05w.2xA@newsflash.concordia.ca> <1992Dec17.001046.27321@crd.ge.com> <knight.724558491@cunews> <BzF7tn.22C@inews.Intel.COM> <knight.724800099@cunews> <BzMnKp.B4J@inews.Intel.COM>
- Date: Thu, 24 Dec 1992 01:18:18 GMT
- Lines: 45
-
- In <BzMnKp.B4J@inews.Intel.COM> bongalon@tcad05.intel.com (Ben Bongalon) writes:
- >In article <knight.724800099@cunews>, knight@mrco.carleton.ca (Alan
- >Knight) writes:
- >|> This seems like an excellent example of what I was talking about. You
- >|> apparently do not disintguish between identity and equality for
- >|> complex numbers. If my representation of complex numbers was, for
- >|> example, strings, then "1+2i" and "1+2(i^5)" are not in any normal
- >|> sense identical, but they are equal.
-
- >my question is:
-
- >why would you want to consider "i" and "(i^5)" as equal but not
- >identical values? Do you consider "1" and "(3-2)" equal but not
- >identical also? From a pragmatic point of view, the distinction
- >between the simplified and unsimplified forms of the expressions
- >seem questionable.
-
- If I have non-normalized instances then they are clearly distinct. If
- only during the process of normalization, I must consider them as
- such, and they must be stored in different places, i.e. not identical.
- For the sake of efficiency, I may also wish not to represent all
- complex numbers by a pointer.
-
- Frankly, I shouldn't care if complex numbers are identical or not. I
- don't think identity is a useful operation for them.
-
- >|> If I, as a user, type in these two expressions on the keyboard, I
- >|> would expect to get separate instances of complex numbers (i.e.
- >|> multiple copies) of equal values.
-
- >Why? Unless there is a specific need for distinction, I as a user
- >would be more interested in the simplified form (ie, the semantic
- >definition) of an expression rather. I don't want to distinguish
- >the _infinite_ number of ways that a value can be represented in.
-
- Perhaps you do, perhaps you don't. If you were writing a symbolic
- algebra system, you probably would. You still wouldn't want to
- distinguish them by identity, though.
- --
- Alan Knight knight@mrco.carleton.ca +1 613 788 2600x1027
- Dept. of Mechanical and Aerospace Engineering
- Carleton University, Ottawa, Ontario, Canada, K1S 5B6
-
-