diff options
Diffstat (limited to 'forth/step6_file.fs')
| -rw-r--r-- | forth/step6_file.fs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forth/step6_file.fs b/forth/step6_file.fs index b3945ad..60b3817 100644 --- a/forth/step6_file.fs +++ b/forth/step6_file.fs @@ -162,13 +162,13 @@ defspecial fn* { env list -- val } MalSymbol extend mal-eval { env sym -- val } - 0 sym env get + sym env env/get-addr dup 0= if drop - ." Symbol '" - sym as-native safe-type - ." ' not found." cr + ." Symbol '" sym pr-str safe-type ." ' not found." cr 1 throw + else + @ endif ;; drop |
