Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!gatech!news.sprintlink.net!mv!usenet
From: rapp@lmr.mv.com (L. M. Rappaport)
Subject: Re: Factoring In Smalltalk
Message-ID: <D9JqsK.4sI@mv.mv.com>
Nntp-Posting-Host: lmr.mv.com
Sender: usenet@mv.mv.com (System Administrator)
Organization: MV Communications, Inc.
Date: Fri, 2 Jun 1995 15:56:17 GMT
References: <3qj56f$eiv@mars.efn.org> <3qko8i$3ul@ornews.intel.com>
X-Newsreader: Forte Free Agent v0.55
Lines: 36

pdlogan@ornews.intel.com (Patrick Logan) wrote:

>Fred Warren (fwarren@gears.efn.org) wrote:

... edited

>: How do you factor code in smalltalk?

... edited

>* Multiple expressions that appear related (in this case, say, they
>  may be to the same collaborating object) can be candidates for
>  factoring into a single expression. (i.e. multiple message sends to
>  another object can be expressed as a single message send.)
>  (or even, as you say, to itself.)

I'm also learning the Smalltalk language, but I come from an OO
background ( Clipper-Class(y)  ).  In the above quote, are you
referring to "delegation" where a specific class is intended to
perform a service and is normally used by encapsulating an object of
that class within an instance variable of the delegating class?  (I'm
just trying to nail down "collaborating object" to terms with which I
am already familiar)

Thanks,

Larry
--



--------------------------------------------------------------
L. M. Rappaport & Associates, Inc.       Voice +1.603.237.8400
P. O. Box 158                            Fax   +1.603.237.8430
Colebrook, NH 03576                      CIS   72427,2567

