From: dblack@... Date: 2002-11-28T01:33:45+09:00 Subject: Re: explicit destroy On Thu, 28 Nov 2002, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Lyle Johnson" > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" > Sent: Wednesday, November 27, 2002 9:32 AM > Subject: Re: explicit destroy > > > [snip] > > > And so a short example of its use would go like this: > > > > # Create some agents > > bond = Agent.new > > jinx = Agent.new > > > > # Jinx wants to know when Bond dies > > bond.befriend(jinx) > > > > # Kill Bond; this should trigger a call to > > # Jinx's notifyOfDeath() method. > > bond.die > > I can see the movie now: _Garbage Collect Another Day_... sprintf("%.3d", ?\a) ... David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav