Pit Capitain
5/1/2005 3:30:00 PM
Blaine Buxton schrieb:
> But, I still think the method's local state should be saved on the
> stack as well. Am I missing something?
Hi Blaine,
if you look at this small example, you see that local variables are
indeed *not* saved by continuations:
v = 1
c = callcc { |cc| cc }
puts( v, c )
if Continuation === c
v = 2
c.call( 5 )
end
Output:
1
#<Continuation:0x2a6b738>
2
5
Feel free to ask if you need more help.
Regards,
Pit