I have a macro that is defined in a module that creates a dictionary of anonymous functions. These anonymous functions wrap arbitrary code which I pass in. If I pass in simple pieces of code (e.g. just returning a simple value), my test script everything works as expected.
However, if I make a function in my test script, which then gets wrapped in an anonymous function (e.g. I do a begin/end block), I get an error that the function is not defined. But, if I move the function out of my test script to my module, everything works. I assume what is happening is that when the anonymous function is being made, it sees only the namespace of the module. This almost makes sense to me, except that the macro is being called from my test script, so the namespace should also be in the script. Is this expected behavior? If so, are there any suggestions on how to get around this? I can provide code if it will be helpful (I thought in this case it might just make things more complicated). Also, I'm using Julia version 0.3.0-prerelease+3337. Thanks!
