Re:By example: Continuation-passing style in JavaScript
by ajro on Tuesday November 09, 2010 @05:06PM
(#1888135)
I found this link before posting the question but I still can't imagine how to use javascript call/cc implementation from your article (on the other hand I think I know how to use call/cc in scheme). Maybe I am too tired today.
If you posted a simple example of JavaScript written in continuation-passing style and using this call/cc implementation probably everything would be clear.
That's the implementation of call/cc.
For how to use call/cc, I recommend my other article on continuations:
http://matt.might.net/articles/programming-with-continuation...