From: "Hal E. Fulton" Date: 2002-11-28T01:12:02+09:00 Subject: Re: explicit destroy ----- 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_... Hal