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