X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scheme.forth.jl.git;a=blobdiff_plain;f=src%2Fscheme-primitives.4th;fp=src%2Fscheme-primitives.4th;h=a9b47413b7143ab70f5d22213d746a9959e33f1d;hp=f6bb92d399d9bddc5e4baf9b8584224bd8adf8f2;hb=f1f104259426dc77ec46ae1ac3bda65fcc19a034;hpb=effe46c25202697eecbecb427828f466a710c8bc diff --git a/src/scheme-primitives.4th b/src/scheme-primitives.4th index f6bb92d..a9b4741 100644 --- a/src/scheme-primitives.4th +++ b/src/scheme-primitives.4th @@ -607,9 +607,17 @@ defer display 2swap apply ; make-primitive apply -:noname ( args -- result ) - make-continuation nil cons - 2swap apply +:noname ( proc -- result ) + make-continuation + + drop if + nil cons + 2swap apply + else + 2swap 2drop + then + + trace ; 1 make-fa-primitive call-with-current-continuation