[Seaside] continuations resources

Ramon Leon ramon.leon at allresnet.com
Tue Oct 10 18:31:19 UTC 2006


> Continuations are more general however, and are capable of 
> being called many times.  It's like going back in time, 
> somewhere earlier in the code, you were in a context where 
> you said... Hmm, I want to be able to come back here and 
> start over, so save this context as the current continuation. 
>  Later, you find yourself in a situation where you want to 
> bail out and start over again at that spot, so you invoke the 
> current continuation and do exactly that, time travel back to 
> that point, and continue from wherever it was, even if that 
> spot was in the middle of a method somewhere.  The 
> continuation starts right at the point in the stack where it 
> left off.  Think of it as calling a no arg method that was 
> created on the fly at any point of your choosing, even mid 
> execution, at any time in the past.

Quite literally, a continuation is a GOTO.

Ramon Leon
http://onsmalltalk.com  



More information about the Seaside mailing list