This looks like a bug with `parseStmt`. I think the module resolution is done relative to `macros.nim` instead of relative to the module which called `parseStmt`. Here is a version that works and doesn't hard code the module name: import macros macro loadModule(module: static[string]): typed = result = quote do: import `module` loadModule "myModule"
- Why macros can't find a local module? r3d9u11
- Re: Why macros can't find a local module? mashingan
- Re: Why macros can't find a local module? r3d9u11
- Re: Why macros can't find a local module? c0ntribut0r
- Re: Why macros can't find a local module? r3d9u11
- Re: Why macros can't find a local module... GULPF