Hi all,
I'm currently try to interface with another julia project by including it
within my module. The problem I run into is that the other project consists
out of a lot of .jl files which are loaded via require(). Thus, they are
all loaded into the context of the Main module. Now when I want to include
the desired files from the other project into the context of my module I
will run into trouble. Note, that the current Julia version I'm working
with is *0.3.11* and at this moment it is not an option to change to a
newer Julia version.
Here is an example to illustrate my problem:
the Module which will include a .jl
module TESTModule
export my_print
require("defs.jl")
function my_print(x::Z)
println(x)
end
end
The .jl which defines a simple typealias
typealias Z Float64
The error:
*ERROR: Z not defined*
*in require at loading.jl:51*
*while loading
/Users/guckd/NASA/ACAS_X/code/JULIA/v0.3/TESTModule/src/TESTModule.jl, in
expression starting on line 7*
When using include("defs.jl") this will of course work. However, in the
project only requires are used. Is there a good way to solve my problem
without changing the other project?
Thanks and Best,
Dennis