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=dbb68bc63aa56f57386a9b9d7c96eadcd4558cff;hp=c3eeb5d472e523b6c6aaaf18c52e94e3030376ad;hb=c775ab2562b213ac96fe1803d4e7001a73e874a8;hpb=b79c6f19d9756f83f10a4653a7661fa33f191588 diff --git a/src/scheme-primitives.4th b/src/scheme-primitives.4th index c3eeb5d..dbb68bc 100644 --- a/src/scheme-primitives.4th +++ b/src/scheme-primitives.4th @@ -610,6 +610,14 @@ defer display :noname ( proc -- result ) make-continuation + ( Note that we get to this point either when + make-continuation is originally called or when + restore-continuation is called. Since we don't + want to call proc again following a restore, + we use the boolean values placed on the parameter + stack by make-continuation and restore-continuation + to detect which call got us here and act accordingly. ) + drop if nil cons 2swap apply