X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=blobdiff_plain;f=src%2Fscheme-primitives.4th;h=f94701f743c2d21222167450094cc8f6a4b8a7e2;hb=899e3f7a10cbb8ecd03aa2dfe3ad08bf4638a324;hp=bce895de851ff01d71b04134fbe1e9457d3e1ac9;hpb=3f60507c407dc22a19b4539d08cc926c54141653;p=scheme.forth.jl.git diff --git a/src/scheme-primitives.4th b/src/scheme-primitives.4th index bce895d..f94701f 100644 --- a/src/scheme-primitives.4th +++ b/src/scheme-primitives.4th @@ -607,6 +607,16 @@ defer display 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 ==== {{{