home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / smalltal / 2834 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.1 KB  |  49 lines

  1. Newsgroups: comp.lang.smalltalk
  2. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!sdd.hp.com!swrinde!cs.utexas.edu!torn!nott!cunews!cunews!knight
  3. From: knight@mrco.carleton.ca (Alan Knight)
  4. Subject: Re: get/set behaviour (was: >>Voluntary method typing)
  5. Message-ID: <knight.728144758@cunews>
  6. Sender: news@cunews.carleton.ca (News Administrator)
  7. Reply-To: knight@mrco.carleton.ca (Alan Knight)
  8. Organization: Carleton University
  9. References: <1993Jan27.001832.10017@cs.uow.edu.au> <1993Jan27.132905.3865@heeg.de>
  10. Date: Wed, 27 Jan 1993 14:25:58 GMT
  11. Lines: 38
  12.  
  13. In <1993Jan27.132905.3865@heeg.de> hasko@heeg.de (Hasko Heinecke) writes:
  14.  
  15. >In article <1993Jan27.001832.10017@cs.uow.edu.au> humm@cs.uow.edu.au (Bernhard G Humm) writes:
  16. >>
  17. >>hasko@heeg.de writes:
  18. >>
  19. >>In article <1993Jan25.070651.2105@cs.uow.edu.au> humm@cs.uow.edu.au (Bernhard G >Humm) writes:
  20. >>>>>>Of course, this only applies to database-type objects which just have
  21. >>>>>>get/set behaviour, but this seems quite a significant subset.
  22. >>>>
  23. >>>>Are there really any other cases in a pure OO language?
  24. >>>
  25.  
  26. <Various arguments about the distinction deleted>
  27.  
  28. The distinction is quite clear from the original post.  It says
  29. "database-type objects which _just_ have get/set behaviour". Clearly
  30. objects have a record structure internally, but they also may provide
  31. a great deal of additional behaviour beyond just setting and getting
  32. the state of instance variables. I believe the original author was
  33. referring to objects which do not provide any additional behaviour and
  34. are thus very much like objects n a database or a "normal" language.
  35.  
  36. There is also the issue that in an OO language it is not necessary to
  37. provide these get/set methods, so the internal state of an object may
  38. not be (entirely) visible to code not part of that object. e.g.
  39. streams in V/Windows (and probably others) where it is not possible
  40. (withou;t cheating) to directly access the collection over which you
  41. are streaming.  One can only get a copy.
  42.  
  43.  
  44. -- 
  45.  Alan Knight  knight@mrco.carleton.ca  +1 613 225 8812
  46.  The Object People, 885 Meadowlands Dr., Suite 509
  47.  Ottawa, Ontario, Canada, K2C 3N2
  48.  
  49.