From 436e3ec83c0d8d61bc6888811e565b73df377e76 Mon Sep 17 00:00:00 2001 From: Martin Gasbichler Date: Thu, 20 Feb 2003 22:39:32 +0000 Subject: [PATCH] initial version --- s48/continuation-data-type/README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 s48/continuation-data-type/README diff --git a/s48/continuation-data-type/README b/s48/continuation-data-type/README new file mode 100644 index 0000000..6c183c5 --- /dev/null +++ b/s48/continuation-data-type/README @@ -0,0 +1,20 @@ +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.