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
Fixed if form when no alternative.
[scheme.forth.jl.git]
/
defer-is.4th
diff --git
a/defer-is.4th
b/defer-is.4th
index
07f1342
..
89f07de
100644
(file)
--- a/
defer-is.4th
+++ b/
defer-is.4th
@@
-1,4
+1,4
@@
-\
Add w
ords supporting deferred execution
+\
W
ords supporting deferred execution
: abort-defer
." Tried to execute undefined deferred word." cr abort ;
: abort-defer
." Tried to execute undefined deferred word." cr abort ;
@@
-18,7
+18,7
@@
hide abort-defer
: is immediate
bl word find
: is immediate
bl word find
- 0= abort"
Undefined
deferred word."
+ 0= abort"
Tried to define unknown
deferred word."
state @ 0= if
defer!
state @ 0= if
defer!
@@
-33,3
+33,9
@@
hide abort-defer
0 ,
here docol ,
[compile] ] ;
0 ,
here docol ,
[compile] ] ;
+
+
+\ Need this for tail call optimization
+
+: goto-deferred ( cfa -- )
+ R> drop >body @ >body >R ;