Continuation question
Julian Fitzell
julian at beta4.com
Thu Feb 26 17:30:05 UTC 2004
Alexandre Bergel wrote:
> Hello!
>
> The following yield 2 because Squeak does not support any full closure.
>
> |t blocks| t := [:x| [x]]. blocks := Array with: (t value: 1) with: (t value: 2). blocks first value
>
> But what is the equivalent with Seaside? I would like to understand better how Seaside works...
I'm not exactly sure what you're asking. Seaside tends to get around
the lack of full closures by using #fixTemps in key places. So in this
case:
|t blocks| t := [:x| [x] fixTemps]. blocks := Array with: (t value: 1)
with: (t value: 2). blocks first value
should return the value (1) you are expecting...
Not sure if that answers your question or not,
Julian
More information about the Squeak-dev
mailing list
|