[Pharo-project] Block semantics ....
stephane.ducasse at inria.fr
Tue Nov 30 09:17:21 CET 2010
I do not have the time but I have some slides on showing the difference between statically scoped lisp function and dynamically one.
This illustrates the funargs problem but probably you get access to that on wikipedia.
with block the object you refers from within a block may live longer than the method defining the block so you have to pay attention.
On Nov 29, 2010, at 9:43 PM, James Ladd wrote:
> Hi Eliot,
> I was suspecting you might respond, you really know your stuff.
> I think I'm more confused now that before but in a good way.
> I have more information thank to you.
> My need to fully understand blocks is to implement them in Redline.
> Maybe it will be sufficient to 'limit' the use of a block with a
> return to the method in which is was defined?
> ie: Method A can define the block and send it as an argument, but once
> method A has been exited, the block is no longer valid, at least not
> the return part.
> Does this appear most 'like' how blocks are handled in Pharo?
> Rgs, James.
More information about the Pharo-project