sunterlib/s48/continuation-data-type
Anthony Carrico b6af6f686f Use install lib version 1.2.0. 2005-07-08 02:12:13 +00:00
..
AUTHORS Changed to new package system. 2004-03-10 17:23:45 +00:00
BLURB Automatically generate file DETAILS containing library details. 2003-03-11 06:13:58 +00:00
NEWS Changed to new package system. 2004-03-10 17:23:45 +00:00
README Add loading instructions 2004-03-27 07:44:22 +00:00
continuation-data-type.scm Code from Marc Feeley's Scheme 2001 paper. 2003-02-13 12:05:57 +00:00
packages.scm Moved package and interface definition to packages.scm. Generate load scripts. 2004-03-14 22:59:57 +00:00
pkg-def.scm Use install lib version 1.2.0. 2005-07-08 02:12:13 +00:00

README

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

================================================================================

After installation, use the switch

-lel continuation-data-type/load.scm

to load this library.

================================================================================


(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.