My code is divided into several files, say A.jl, B.jl, C.jl, each of which defines a single module, say A, B, C. Inside C.jl there are declarations like this:
import A.myfunction1
import B.myfunction2
In 0.6.2, I was able in the REPL to issue instructions in this order:
include("A.jl")
include("B.jl")
include("C.jl")
and then my code would run. In 0.7-DEV, module C can’t find b.myfunction2
. it appears that C.jl now must qualify the import
statements with Main
:
import Main.A.myfunction1
import Main.B.myfunction2
in order to support this workflow. Is this correct? Why the change? I would rather not explicitly refer to Main
in the source files since I might reorganize my code later to look for the modules elsewhere, e.g., using the Package mechanism.