[BUG]Morph>>updateableActionMap

Bob Arning arning at charm.net
Tue Mar 19 00:07:55 UTC 2002


On Mon, 18 Mar 2002 14:43:22 -0800 Ned Konz <ned at bike-nomad.com> wrote:
>On Monday 18 March 2002 12:25 pm, Withers, Robert wrote:
>> Note thtat I selected to keep
>> the WeakIdentityKeyDictionary, in EventManager, hopefully to remove those
>> dreadful stong references to objects that fail to detach from
>> registrations. I find that this still often happens when an object is an
>> argument in a registered MessageSend.
>
>So why not just make a MessageSend that uses weak refs for arguments instead?
>
>I ran into the same problem with BlockClosures, and so went to MessageSends, 
>but had to use separate WeakArrays to hold onto the arguments. However, 
>making a weak MessageSend would be quite easy.

That could be a bit tricky. If the arguments were held weakly, then they might disappear while the MessageSend itself was still needed.

Cheers,
Bob



More information about the Squeak-dev mailing list