explicit return from a block

Viktor Svub gilrandir at centrum.cz
Tue Jun 27 07:23:15 UTC 2006


Is there any way to explicitly return from a BlockContext/BlockClosure
(like ^some-expression in methods) but without returning from the parent
context (method)? I'm beginning to figure out how to avoid the need for
"break&continue" in loops, and i know that i can even avoid the need for
explicit return converting the block in question in a method, but there
are places where a long block is much more convenient...
thanks
vsv




More information about the Squeak-dev mailing list