From: Tim Vaughan Date: Sun, 29 Oct 2017 22:44:27 +0000 (+0100) Subject: Fixed bug in set-var. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=8d87c905d883a612eafa69cb69e808d36375490b;p=scheme.forth.jl.git Fixed bug in set-var. --- diff --git a/src/scheme.4th b/src/scheme.4th index 68c3b67..cf3ddc5 100644 --- 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