Warning: Parameter 3 to processTexinfoTag() expected to be a reference, value given in /Users/gambit/Sites/wiki/includes/parser/Parser.php on line 3333
Documentation:Procedure continuation? - Gambit wiki

Documentation:Procedure continuation?

From Gambit wiki

(Difference between revisions)
Jump to: navigation, search
m (Initial submission)
(added continuation documentation from Marks paper)
Line 13: Line 13:
===User contributed comments, clarifications and examples===
===User contributed comments, clarifications and examples===
-
<texinfo>
+
From Mark Feelys Paper [http://3e8.org/ pub/pdf-t1/feeley.pdf]:
-
@i{No comments yet!}
+
(continuation-capture receiver) – creates a continuation
 +
object representing the current continuation and
 +
tail-calls the receiver procedure with this continuation
 +
as the single argument.
-
</texinfo>
+
(continuation-graft cont thunk) – calls the thunk
 +
with no argument and the implicit continuation cont.
 +
 
 +
(continuation-return cont value1...) – returns the
 +
value(s) to the continuation cont (the definition given
 +
above in terms of continuation-graft is still valid).

Revision as of 01:27, 21 September 2009



User contributed comments, clarifications and examples

From Mark Feelys Paper pub/pdf-t1/feeley.pdf:

(continuation-capture receiver) – creates a continuation object representing the current continuation and tail-calls the receiver procedure with this continuation as the single argument.

(continuation-graft cont thunk) – calls the thunk with no argument and the implicit continuation cont.

(continuation-return cont value1...) – returns the value(s) to the continuation cont (the definition given above in terms of continuation-graft is still valid).

Personal tools
documentation