Hello All,

I am trying to define and use a module. I have the following code.


module TestModule

export test_func

function test_func(val)
  println(val)
end

end


-----------------------------------


#!/usr/bin/julia

using TestModule

println(LOAD_PATH)

test_func("TestVal")


I have put the module source file under the path 
<LOAD_PATH>/TestModule/src/TestModule.jl. I've tried a variety of other 
variations, but to no avail. Is there something that I am doing wrong? I 
get "Warning: requiring "TestModule" did not define a corresponding 
module." when I try to use (using)  the module.

Thanks,
Gerry

Reply via email to