home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / object / 4612 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!cunews!cunews!knight
  3. From: knight@mrco.carleton.ca (Alan Knight)
  4. Subject: Re: Object hidden state and side effects
  5. Message-ID: <knight.724948496@cunews>
  6. Sender: news@cunews.carleton.ca (News Administrator)
  7. Reply-To: knight@mrco.carleton.ca (Alan Knight)
  8. Organization: Carleton University
  9. References: <BzF6uA.1u3@inews.Intel.COM> <1992Dec17.221333.3023@midway.uchicago.edu> <knight.724800436@cunews> <1992Dec20.162050.14652@midway.uchicago.edu> <knight.724904387@cunews>
  10. Date: Mon, 21 Dec 1992 14:34:56 GMT
  11. Lines: 26
  12.  
  13. In <knight.724904387@cunews> knight@mrco.carleton.ca (Alan Knight) writes:
  14.  
  15. >In <1992Dec20.162050.14652@midway.uchicago.edu> dave@alex.uchicago.edu (Dave Griffith) writes:
  16.  
  17. >>>Normal storage (or mutable values): State can be modified, but there
  18. >>>is no identity operation. e.g. storage allocated on the stack in
  19. >>>traditional languages. 
  20.  
  21. >>'Splain me, boss.  I'm feeling dumber than usual.
  22.  
  23. Let me try that again more concisely, having rested my brain cells.
  24.  
  25. Consider objects which are mutable but for which assignment is really
  26. copying. An identity operation for such objects is meaningless because
  27. no two can ever be identical. However, any individual object can be
  28. modified. 
  29. This is the normal case for data not represented by pointers in
  30. traditional languages. 
  31.  
  32. -- 
  33.  Alan Knight  knight@mrco.carleton.ca  +1 613 788 2600x1027 
  34.  Dept. of Mechanical and Aerospace Engineering              
  35.  Carleton University, Ottawa, Ontario, Canada, K1S 5B6      
  36.  
  37.