[Pharo-project] Block semantics ....

James Ladd james_ladd at hotmail.com
Sun Nov 28 22:37:07 CET 2010





Hi All,

I'm wondering about documentation to describe the block semantics of Pharo Smalltalk,
Specifically around the return context when a block contains a return:  [ ^ foo ]

Is a block valid only within the method that defined it and passed / called it?
I think it is, and when called outside of the context there is a BlockContext no longer exists error.

However, I'm looking for documentation or confirmation to ensure my testing was correct.

Rgs, James.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20101129/b5d0bdd6/attachment.htm>


More information about the Pharo-project mailing list