diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-28 00:56:33 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-28 00:56:33 -0800 |
commit | a9e06b4e815240f7f954d237f8625c30338be55f (patch) | |
tree | e8239869b0ea540e42b7083f95e3b60a61eff53b /ChangeLog | |
parent | 9caae19a42d87582a82c3d855b7dc59fe6427e7b (diff) | |
download | txr-a9e06b4e815240f7f954d237f8625c30338be55f.tar.gz txr-a9e06b4e815240f7f954d237f8625c30338be55f.tar.bz2 txr-a9e06b4e815240f7f954d237f8625c30338be55f.zip |
Bugfixing semantics of symbol macro hiding by variable bindings.
* eval.c (expand_vars): Expand vars needs to know whether it's
handling a sequential (let*-like) or parallel (let-like) binding.
The init form of a variable sees the previous macro environment,
but that variable must, for the remaining variables, shadow any
previous symbol macro.
(expand): In expand we must inform expand_vars whether we have
a sequential or parallel binding construct. Moreover, there was
a huge bug here: the new_menv (with the shadows) was passed to
expand_vars, so that all the variables were hiding same-named
symbol macros from all their initforms.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,18 @@ +2014-02-28 Kaz Kylheku <kaz@kylheku.com> + + Bugfixing semantics of symbol macro hiding by variable bindings. + + * eval.c (expand_vars): Expand vars needs to know whether it's + handling a sequential (let*-like) or parallel (let-like) binding. + The init form of a variable sees the previous macro environment, + but that variable must, for the remaining variables, shadow any + previous symbol macro. + (expand): In expand we must inform expand_vars whether we have + a sequential or parallel binding construct. Moreover, there was + a huge bug here: the new_menv (with the shadows) was passed to + expand_vars, so that all the variables were hiding same-named + symbol macros from all their initforms. + 2014-02-27 Kaz Kylheku <kaz@kylheku.com> * eval.c (delay_s): Global variable removed. |