Continuation question
Alexandre Bergel
bergel at iam.unibe.ch
Fri Feb 27 09:41:35 UTC 2004
But how this fixStemps is related to the class Continuation?
Alexandre
On Thu, Feb 26, 2004 at 09:30:05AM -0800, Julian Fitzell wrote:
> 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
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|