diff options
| author | Chouser <chouser@n01se.net> | 2015-02-22 13:20:31 -0500 |
|---|---|---|
| committer | Chouser <chouser@n01se.net> | 2015-02-23 22:22:04 -0500 |
| commit | a631063f3fa2eaed473369b376a5499df92209bd (patch) | |
| tree | ee0e08f5226525cb4885512e07ae53c30f185990 /forth/step3_env.fs | |
| parent | 3a17cb968281f7e833088fdb22cf793861810912 (diff) | |
| download | mal-a631063f3fa2eaed473369b376a5499df92209bd.tar.gz mal-a631063f3fa2eaed473369b376a5499df92209bd.zip | |
forth: Add map-hint to symbols for better perf
Diffstat (limited to 'forth/step3_env.fs')
| -rw-r--r-- | forth/step3_env.fs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forth/step3_env.fs b/forth/step3_env.fs index 676bfcc..a8a625e 100644 --- a/forth/step3_env.fs +++ b/forth/step3_env.fs @@ -91,13 +91,13 @@ defspecial let* { old-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 |
