[Pharo-project] Working with weak announcements...

Stéphane Ducasse stephane.ducasse at inria.fr
Mon Feb 14 21:57:07 CET 2011


good question :)

On FHi, 
> I'm working with weak announcements,

good we need that. 
Igor was telling me that the right anwser are ephemerons (but for that: gc change is required).
Now it would be good to have first a solution at image level

> trying to make it work, and I have a problem in #on:do: protocol (or #when:do:) 
> I try to explain: 
> 
> This method receives a block, not an object/selector, so I can't create a WeakMessageSend which is the appropriate message to handle in other cases.
> Well, the real question is... how can I produce a "Weak BlockClosure reference" who can die if receiver dies? 
> I tried some hacks (really ugly hacks, btw), but fail completely. 
> Any idea?
> 
> best,
> Esteban





More information about the Pharo-project mailing list