Documentation:Procedure call-with-current-continuation

From Gambit wiki

Jump to: navigation, search



User contributed comments, clarifications and examples

These procedures return a procedure that invokes the continuation, and not the continuations themselves.

   > (procedure? (call/cc (lambda (k) k)))
   #t
   > (continuation? (call/cc (lambda (k) k)))
   #f
   > (procedure? (continuation-capture (lambda (k) k)))
   #f
   > (continuation? (continuation-capture (lambda (k) k)))
   #t


Personal tools
documentation