home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.object:3078 comp.lang.eiffel:1030
- Newsgroups: comp.object,comp.lang.eiffel
- Path: sparky!uunet!s5!is1.is.morgan.com!is0.is.morgan.com!steinman
- From: steinman@is.morgan.com (Jan Steinman)
- Subject: Re: Class methods (was: Re: How to design a data structure library)
- In-Reply-To: rhsu@pascal.sbi.com's message of 30 Jul 92 16:19:21 GMT
- Message-ID: <STEINMAN.92Jul31093806@hawk.is.morgan.com>
- Sender: news@is.morgan.com
- Nntp-Posting-Host: hawk
- Organization: Morgan Stanley & Company
- References: <GEOFF.92Jul27100601@wodehouse.flash.bellcore.com>
- <STEINMAN.92Jul28184519@hawk.is.morgan.com> <1295@pascal.sbi.com>
- Date: Fri, 31 Jul 1992 14:38:06 GMT
- Lines: 48
-
- From: rhsu@pascal.sbi.com (Robert Hsu)
- Date: 30 Jul 92 16:19:21 GMT
-
- steinman@is.morgan.com (Jan Steinman) writes:
- > I think the hang-up on queries or commands is getting in the way here,
- > as is the class-object distinction. Objects are created continuously
- > and rapidly; many messages need to return newly created objects, and
- ^^^^^^
- > if you insist that only classes can return new objecs, you'll get in
- ^^^^^^
- > trouble quick!
-
- My understanding of Smalltalk is that, indeed, only classes
- can create new objects...
- ^^^^^^
-
- I think we are in heated agreement here. My argument was with Richard
- Bielak, who seems to insist that only Classes should *return* new
- objects. Of course, Classes must be the One True Root Of All New
- Objects, but isn't O-O all about information hiding and abstraction?
- Which means that when
-
- > ... aMan and aWoman collaborate to create aChild -- they don't
- > ask either Manness or Womanness to do it for them!
-
- there is, as Robert Hsu eloquently points out, something else that
- happens, but our abstract perspective has no business with whatever
- that "something else" was! (Unless you live in Virginia, where aMan
- and aWoman can be arrested for creating aChild outside of certain,
- State approved postures.) Robert continues:
-
- ...A lot of interesting actions must be performed for this to
- happen, most of which occurring in the early stages; but most
- importantly, deep in the code somewhere, after the member access
- methods at the beginning, and before the delivery of the exit
- message at the end, there must be a call to the appropriate class
- object to create a new Man or Woman...
-
- As others have pointed out, we are losing the distinction between
- syntax and semantics. From the omniscient, abstract viewpoint, two
- Sets get together and produce a new union Set. Who created the union
- Set? Who cares! If we are to decend "deep into the code somewhere"
- each time we wish to understand the semantics of some code, we have
- lost a great deal of the object benefit.
- --
- : : Jan Steinman steinman@is.morgan.com Bytesmiths : :
- : : 2002 Parkside Court West Linn, OR 97068-2767 : :
- : : 503/657-7703 212/956-8722 : :
-