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.724948496@cunews>
- Sender: news@cunews.carleton.ca (News Administrator)
- Reply-To: knight@mrco.carleton.ca (Alan Knight)
- Organization: Carleton University
- References: <BzF6uA.1u3@inews.Intel.COM> <1992Dec17.221333.3023@midway.uchicago.edu> <knight.724800436@cunews> <1992Dec20.162050.14652@midway.uchicago.edu> <knight.724904387@cunews>
- Date: Mon, 21 Dec 1992 14:34:56 GMT
- Lines: 26
-
- In <knight.724904387@cunews> knight@mrco.carleton.ca (Alan Knight) writes:
-
- >In <1992Dec20.162050.14652@midway.uchicago.edu> dave@alex.uchicago.edu (Dave Griffith) writes:
-
- >>>Normal storage (or mutable values): State can be modified, but there
- >>>is no identity operation. e.g. storage allocated on the stack in
- >>>traditional languages.
-
- >>'Splain me, boss. I'm feeling dumber than usual.
-
- Let me try that again more concisely, having rested my brain cells.
-
- Consider objects which are mutable but for which assignment is really
- copying. An identity operation for such objects is meaningless because
- no two can ever be identical. However, any individual object can be
- modified.
- This is the normal case for data not represented by pointers in
- traditional languages.
-
- --
- Alan Knight knight@mrco.carleton.ca +1 613 788 2600x1027
- Dept. of Mechanical and Aerospace Engineering
- Carleton University, Ottawa, Ontario, Canada, K1S 5B6
-
-