Closed lendle closed 10 years ago
It looks like the problem is that importall A
and import A
actually create a new binding for A
in the local scope, whereas using
doesn't. You don't need Reexport.jl to see this:
module A end
module B
importall A
export A
end
using B
B.A === A
, but these are separate bindings. I'm not sure if there is a good reason for this behavior, but we could avoid the warning if we don't export the module itself.
The only reason I'm using
using A
is to also@reexport
everything. I tried changing the macro to allow forimportall
so I could just do@reexport importall A
once, but the warning still showed up.