sunterlib/s48/continuation-data-type
Martin Gasbichler 436e3ec83c initial version 2003-02-20 22:39:32 +00:00
..
README initial version 2003-02-20 22:39:32 +00:00
continuation-data-type.scm Code from Marc Feeley's Scheme 2001 paper. 2003-02-13 12:05:57 +00:00
interfaces.scm Code from Marc Feeley's Scheme 2001 paper. 2003-02-13 12:05:57 +00:00
packages.scm Code from Marc Feeley's Scheme 2001 paper. 2003-02-13 12:05:57 +00:00

README

The structure continuation-data-type encapsulates continuations into a
data type as proposed by Marc Feeley on the Scheme Workshop 2001.

(continuation-capture receiver) -> continuation

Captures the current continuation of the expression and applies
RECEIVER to it. Unlike CALL-WITH-CURRENT-CONTINUATION applying the
continuation will immediately replace the current continuation.


(continuation-graft cont thunk) -> value of thunk

Makes the continuation CONT the current continuation and calls THUNK
afterwards.


(continuation-return cont . returned-values) -> returned-values

Makes the continuation CONT the current continuation and returns
RETURNED-VALUES afterwards.