The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sketching out call-cc implementation.
[scheme.forth.jl.git]
/
src
/
scheme-primitives.4th
diff --git
a/src/scheme-primitives.4th
b/src/scheme-primitives.4th
index
bce895d
..
f94701f
100644
(file)
--- a/
src/scheme-primitives.4th
+++ b/
src/scheme-primitives.4th
@@
-607,6
+607,16
@@
defer display
2swap apply
; make-primitive apply
2swap apply
; make-primitive apply
+: make-continuation
+ \ TODO: Capture parameter and return stacks in continuation
+;
+
+:noname ( args -- result )
+ make-continuation nil cons
+ 2swap apply
+
+; 1 make-fa-primitive call-with-current-continuation
+
\ }}}
\ ==== Miscellaneous ==== {{{
\ }}}
\ ==== Miscellaneous ==== {{{