BlockClosure objects hold reference to object that created them via
outerContext receiver. This can cause memory leaks when moving blocks
around/deepcopying/serializing.

Is there a way to get "lightweight" block that has empty outerContext (like
when executing code in Playground) or is there another class for such
"lightweight" blocks somewhere?

Obviously I'm talking about blocks that don't reference variables in
enclosing scope and don't do nonlocal return.



--
View this message in context: 
http://forum.world.st/Block-that-doesn-t-leak-memory-tp4868529.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to