home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / object / 4597 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.6 KB  |  59 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!siswat!buck
  3. From: buck@siswat.hou.tx.us (Lester Buck)
  4. Subject: Re: Object hidden state and side effects
  5. Message-ID: <1992Dec18.152344.19020@siswat.hou.tx.us>
  6. Organization: Photon Graphics, Houston
  7. References: <BzBC1L.3GJ@inews.Intel.COM> <1992Dec15.201242.8995@midway.uchicago.edu> <BzF6uA.1u3@inews.Intel.COM>
  8. Date: Fri, 18 Dec 1992 15:23:44 GMT
  9. Lines: 48
  10.  
  11. In article <BzF6uA.1u3@inews.Intel.COM> bongalon@tcad05.intel.com (Ben Bongalon) writes:
  12. >
  13. >I wrote:
  14. >|> >Frankly I don't understand all the confusion about the distinction
  15. >|> >between objects and values.  As i see it, an object may have
  16. >internal states; 
  17. >|> >more specifically, an object may contain other objects, which 
  18. >|> >may in turn be composite (ie, contain other objects) or simple
  19. >|> >(ie, just contains values).  But note that simple and composite
  20. >|> >objects are merely concepts in our minds.  In order to apply them
  21. >|> >to computer programming, we map these objects into variables.
  22. >|> >
  23. >
  24. >Dave Griffith replied:
  25. >|> The distinction between simple and compound is somewhat useful, but has
  26. >|> very little to do with the value/object distinction.  
  27.  
  28. [Much extra deleted]
  29.  
  30. I got into this thread late, but just in case this definitive reference
  31. has not been menitioned...
  32.  
  33. You two might want to read the following article:
  34.  
  35. Values and Objects in Programming Languages
  36. B.J. MacLennan
  37. SIGPLAN Notices, Vol 17, No. 12, Dec 1982, pp.70-79
  38.  
  39. reprinted in "Tutorial: Object-Oriented Computing, Volume 1: Concepts"
  40. ed. Gerald E. Peterson, IEEE Computer Society Press, order number 821
  41.  
  42. The introduction section reads:
  43.  
  44.   The terms "value-oriented" and "object-oriented" are used to describe
  45.   both programming languages and programming styles.  This paper attempts
  46.   to elucidate the differences between values and objects and argues that
  47.   their proper discrimination can be a valuable aid to conquering program
  48.   complexity.  The first section shows that "values" amount to timeless
  49.   abstractions for which concepts of updating, sharing and instantiation
  50.   have no meaning.  The second section shows that "objects" exist in time
  51.   and, hence, can be created, destroyed, copied, shared, and updated.  The
  52.   third section argues that proper discrimination of these concepts in
  53.   programming languages will clarify problems such as the role of state in
  54.   functional programming.  The paper concludes by discussing the use of
  55.   the value/object distinction as a tool for program organization.
  56.  
  57. -- 
  58. A. Lester Buck   buck@siswat.hou.tx.us   ...!uhnix1!siswat!buck
  59.