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:
5c89ece
)
Improved error system.
author
Tim Vaughan
<tgvaughan@gmail.com>
Mon, 19 Jun 2017 10:35:28 +0000
(22:35 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Mon, 19 Jun 2017 10:35:28 +0000
(22:35 +1200)
src/scheme-primitives.4th
patch
|
blob
|
history
diff --git
a/src/scheme-primitives.4th
b/src/scheme-primitives.4th
index
1e37e0d
..
f38fd93
100644
(file)
--- a/
src/scheme-primitives.4th
+++ b/
src/scheme-primitives.4th
@@
-611,12
+611,15
@@
defer display
nil? if
." Error."
else
- ." Error: "
-
- begin
- 2dup car print
- cdr nil?
- until
+ ." Error:"
+
+ 2dup car space display
+ cdr nil? invert if
+ begin
+ 2dup car space print
+ cdr nil?
+ until
+ then
2drop
then