[Seaside] Re: BlockClosure vs BlockContext
john.chludzinski at gmail.com
Wed Aug 4 04:39:02 UTC 2010
When I try:
| block w z |
w := 3. z := 12.
block := [ Transcript show: w asString , ' ' , z asString; cr ].
w := 0. z := 1.
I get: 0 1. And NOT: 3 12, which are the values at the point of
How do I force the binding to (3 12)?
On Tue, Aug 3, 2010 at 6:50 PM, John Chludzinski <john.chludzinski at gmail.com
> I have some code that fixed the values of temps (in a BlockContext) at the
> point of definition (using #fixTemps). Now I'm using Seaside 3.0 on Squeak
> 4.1 and the values of the block's temps is set at the point of call (when I
> evaluate the block) - block are now BlockClosure's. How do I fix the temps
> to be the values where the block is defined?
> #fixTemps is now a no-op.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside