The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722badb
)
Fixed bug in set-var.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 29 Oct 2017 22:44:27 +0000
(23:44 +0100)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 29 Oct 2017 22:44:27 +0000
(23:44 +0100)
src/scheme.4th
patch
|
blob
|
history
diff --git
a/src/scheme.4th
b/src/scheme.4th
index
68c3b67
..
cf3ddc5
100644
(file)
--- a/
src/scheme.4th
+++ b/
src/scheme.4th
@@
-485,6
+485,7
@@
objvar var \ Used only for error messages
: set-var ( var val env -- )
2rot 2dup var obj! ( val env var )
+ 2swap ( val var env )
get-vals nil? if
except-message: ." tried to set unbound variable '" var obj@ print ." '."
recoverable-exception throw