summaryrefslogtreecommitdiffstats
path: root/tests/010
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-28 00:56:33 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-28 00:56:33 -0800
commita9e06b4e815240f7f954d237f8625c30338be55f (patch)
treee8239869b0ea540e42b7083f95e3b60a61eff53b /tests/010
parent9caae19a42d87582a82c3d855b7dc59fe6427e7b (diff)
downloadtxr-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 'tests/010')
0 files changed, 0 insertions, 0 deletions