Newsgroups: comp.object,comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!udel!gatech!howland.reston.ans.net!spool.mu.edu!torn!nott!cunews!tina.mrco.carleton.ca!knight
From: knight@mrco.carleton.ca (Alan Knight)
Subject: Re: How many parents?
X-Nntp-Posting-Host: tina.mrco.carleton.ca
Message-ID: <knight.797884901@tina.mrco.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Reply-To: knight@mrco.carleton.ca (Alan Knight)
Organization: The Object People
References: <36@template.win-uk.net> <3l9acq$dlg@news.cc.utah.edu> <1995Apr4.042612.18954@rcmcon.com> <3m59u3$bpg@ionews.io.org> <1995Apr8.163310.1865@rcmcon.com> <knight.797550489@tina.mrco.carleton.ca> <patrick_d_logan.272.0007E90F@ccm.jf.intel.com> <1995Apr12.163947.5143@rcmcon.com>
Date: Fri, 14 Apr 1995 18:41:41 GMT
Lines: 21
Xref: glinda.oz.cs.cmu.edu comp.object:29617 comp.lang.smalltalk:22784

In <1995Apr12.163947.5143@rcmcon.com> rmartin@rcmcon.com (Robert Martin) writes:

>patrick_d_logan@ccm.jf.intel.com (Patrick D. Logan) writes:

>On the other hand, Figure 6-23 on page 407, and the accompanying text
>show a use for MI that is not easily converted to aggregation.  In
>this case, the class Door must inherit from Portal, and must also
>inherit from the class TimerClient so that it can receive time out
>messages from the timer.

I haven't read the book, but in a dynamically typed language I would
expect you could just implement a method to respond to the timer
mesages. Alternatively, the timer could be parameterized so that it
sends different messages to different clients.


-- 
 Alan Knight                | The Object People
 knight@acm.org             | Smalltalk and OO Training and Consulting
 alan_knight@mindlink.bc.ca | 509-885 Meadowlands Dr.
 +1 613 225 8812            | Ottawa, Canada, K2C 3N2
