Fixing temps in BlockContext

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fixing temps in BlockContext

Esteban A. Maringolo-3
Hi,

In order to make some continuations work (and then make Seaside work on
Dolphin), they need to fix the temps of the BlockContexts.

Looking at Squeak Seaside implementation of Continuations, the
#fixTemps does the following:

fixTemps
   "Fix the values of the temporary variables used in the block that are
   ordinarily shared with the method in which the block is defined."

   home := home copy.
   home swapSender: nil


What should be done in dolphin to achieve the same result?

The ingenuous tests I've done ended with 3 crashes, 1 of them getting
windows blue :-) (something I had'n seen since a long time)

Best regards,

--
Esteban.


Reply | Threaded
Open this post in threaded view
|

Re: Fixing temps in BlockContext

Chris Uppal-3
Esteban,

> In order to make some continuations work (and then make Seaside work on
> Dolphin), they need to fix the temps of the BlockContexts.

I don't know how much help it'll be, but a related subject was discussed in
this thread:

http://groups.google.com/groups?threadm=775108e7.0403260114.3b4a3a86@...

Note that the implementation and semantics of Blocks has changed in D6.

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: Fixing temps in BlockContext

Esteban A. Maringolo-3
Chris Uppal escribió:
> Esteban,

>>In order to make some continuations work (and then make Seaside work on
>>Dolphin), they need to fix the temps of the BlockContexts.

> I don't know how much help it'll be, but a related subject was discussed in
> this thread:
> http://groups.google.com/groups?threadm=775108e7.0403260114.3b4a3a86@...

Thanks Chris, I've read many threads, _many_, and I didn't found this!
Thanks.

> Note that the implementation and semantics of Blocks has changed in D6.

Yes, I know, but I want to do it in D5 because:
a) I want it in D5 Pro
b) I don't know when I'll buy a D6Pro
c) Once a) is done, upgrade to D6 will be easier.

Best regards.

--
Esteban.