Hi all,<br><br>I am not sure if the term "current context" is what it should be. Anyway, here is what I like to accomplish:<br><br>(define (suspend func) <br> (call/cc <br> (lambda (k) <br> (save-k)<br>
(func)<br> (exit-current-context))))<br><br>(define (run)<br> (suspend my-func) ;; (run) should return here, as a result of (exit-current-context)<br> ;; When continuation saved by (suspend) is invoked, (run) should resume at (do-something).<br>
(do-something))<br><br>How can I implement (exit-current-context)?? <br><br>Thanks in advance,<br><br>-- Vijay<br>