pereckerdal/blackhole — Issue #35: Macro-generated defines aren't recognized by module-macroexpand
Author: alvatarc
Created: 2012-01-27 16:00:38+00:00
State: open

When generating a define with a macro, such as this:

(define-syntax test
(syntax-rules ()
((_ a)
(define asdf (lambda () 'aaa)))))

(test 2)
(asdf)

You get this error: These variables are undefined: (asdf) # path...

However, when you execute the same code in Blackhole REPL, it does work.
Commenting out the checks done at module-macroexpand (around line 482: undefined-names) makes it work, but of course you loose the undefined variables check, which is a nice thing to have.