[Newbies] How to know where a BlockClosure finish

Mathieu mathk.sue at gmail.com
Fri Aug 25 15:14:31 UTC 2006


Hi,

I want to execute several block:

block1 value
block2 value
block3 value

but if one block return from a retrun statement I want to quit.

[^3] <- want to quit here
[3 + 4]

So is there a way to know when a block evaluation finish by a return?

I need this to interprete a file containing smalltalk and I want to
control the execution beceause I need to add some condition befor
evaluate a block.

Thanks
Math


More information about the Beginners mailing list