summaryrefslogtreecommitdiff
path: root/libguile/filesys.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2024-02-20 13:36:14 +0100
committerAndy Wingo <wingo@pobox.com>2024-02-20 14:15:12 +0100
commit9e0f03c5fd36764827c8bb03887f14640c883b70 (patch)
tree296e78ea3dc5114c55e1c766090d5ddac4844fc9 /libguile/filesys.c
parent2717773bb1ee2d2ae7a0111de21e4f183e5ce86d (diff)
downloadguile-9e0f03c5fd36764827c8bb03887f14640c883b70.tar.gz
Macro-introduced top-level vars scope to their module even if unbound
* module/ice-9/psyntax.scm (analyze-variable): Previously, a reference to a top-level variable in a module other than the current module would be silently rewritten to reference the current module, if the variable was unbound in its original module. This was a hack from the early days of when we extended psyntax to know about the module system. Fix to properly use the scope of the introduced binding instead of the scope of the macro use site. * test-suite/tests/syntax.test ("macro-introduced cross-module unbound identifiers"): Add test. * module/ice-9/psyntax-pp.scm: Regenerate.
Diffstat (limited to 'libguile/filesys.c')
0 files changed, 0 insertions, 0 deletions