WeakMessageSend event registration doesn't work with transient arguments (was [Q] Morphic Color Problems)

Chris Burkert christian.burkert at s2000.tu-chemnitz.de
Mon Jun 16 08:18:18 UTC 2003


Ned Konz wrote:
> On Sunday 15 June 2003 05:19 pm, Chris Burkert wrote:
[snip]
> The problem is that the WeakMessageSends we're using (well, my name is 
> all over this, so I guess I'm responsible) hold on to their receiver 
> *and* their arguments weakly.
> 
> So "Color black" works, but "Color black copy" wouldn't (same with 
> "Color black alpha: 0.3" or any other transient object.)
> 
> We've discussed this at length in the past (like back on February 9) 
> and never really did anything about it.

Could we now do something about it? I don't wanna override the 
events code and the only difficult part to change it is to agree 
on the names for the messages I think.

> For now, just have some object hold on to the colors and it should 
> work fine.

Ok, thanks a lot Ned!

Regards
            Chris Burkert
-- 
http://www.chrisburkert.de/



More information about the Squeak-dev mailing list