Not sure if this is good practice, but in v0.6 I used module
to create a scoping level so that a group of related included code wouldn’t have name conflicts with anything else I was writing. Specifically:
module m
include("foo.jl")
include("bar.jl")
end
import m
function biff(a)
# blah blah
x = m.foo(a);
y = m.bar(x);
# etc.
end
When I try this in Julia v0.7 (say, storing the above in biff.jl
), I get an error message and the subsequent function (biff
) is not parsed or compiled:
julia> include("biff.jl")
ArgumentError: Package m not found in current path:
- Run `Pkg.add("m")` to install the m package.
Please advise.