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

  1. Newsgroups: comp.lang.smalltalk
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!sol.deakin.OZ.AU!news.cs.uow.edu.au!cs.uow.edu.au!humm
  3. From: humm@cs.uow.edu.au (Bernhard G Humm)
  4. Subject: get/set behaviour (was: >>Voluntary method typing)
  5. Message-ID: <1993Jan27.001832.10017@cs.uow.edu.au>
  6. Organization: Dept of Computer Science, Wollongong University, Australia
  7. Date: Wed, 27 Jan 1993 00:18:32 GMT
  8. Lines: 27
  9.  
  10.  
  11. hasko@heeg.de writes:
  12.  
  13. In article <1993Jan25.070651.2105@cs.uow.edu.au> humm@cs.uow.edu.au (Bernhard G >Humm) writes:
  14. >>>>Of course, this only applies to database-type objects which just have
  15. >>>>get/set behaviour, but this seems quite a significant subset.
  16. >>
  17. >>Are there really any other cases in a pure OO language?
  18. >
  19. >Are there really _such_ cases in a pure OO project?
  20.  
  21. In Smalltalk, objects have named or indexed instance variables. They can be
  22.  assigned references to other objects and the values of those variables
  23.  represent the internal state of the object (only simple types like numbers
  24.  or characters don't have instance variables and still have values; probably
  25.  they had better been separated from objects like e.g. in Eiffel). The only
  26.  way you can change the internal state of an object is assigning another value
  27.  to one of its variables. Reading the value of such a variable gives you the
  28.  reference to another object which allows you to do the same things (assign
  29.  variables or read them). Now you tell me the difference between ``database-type
  30.  objects'' and Smalltalk objects...
  31.  
  32. -- 
  33. ________________________________________________________
  34.          Bernhard G. Humm   (humm@cs.uow.edu.au)        
  35.        Telecommunications Software Research Centre      
  36. Department of Computer Science, University of Wollongong
  37.