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
call/cc seems to be working!
[scheme.forth.jl.git]
/
src
/
scheme-primitives.4th
diff --git
a/src/scheme-primitives.4th
b/src/scheme-primitives.4th
index
f6bb92d
..
a9b4741
100644
(file)
--- a/
src/scheme-primitives.4th
+++ b/
src/scheme-primitives.4th
@@
-607,9
+607,17
@@
defer display
2swap apply
; make-primitive apply
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
; 1 make-fa-primitive call-with-current-continuation