What rules to follow to avoid block-closure problems?

itsme213 itsme213 at hotmail.com
Sun Jan 13 06:23:53 UTC 2008

I got bitten again (this time not in my seaside code) by nested blocks not 
working as expected. Ouch, debugging that was painful.

Is there a *simple* rule to follow to avoid this? Should every use of nested 
blocks be replaced by a self-message (with parameters for all the block 
context needed) that does the same? Would be a shame, but if it guarentees 
safe code I will gladly do it.

Such a rule would be useful in the Squeak FAQ (not that I've read it :-)



More information about the Squeak-dev mailing list