Let's say I have a simple module which contains 1 function called "foo"

I might create foo.jl that contains

----foo.jl
module foo

function foo ...
end

end

This doesn't work, it seems the module name collides with the function name.

----foo.jl
module foo_mod

function foo ...
end

end

This might be OK, but provokes a warning (here foo -> coef_from_func)
julia> using coef_from_func
WARNING: requiring "coef_from_func" in module "Main" did not define a 
corresponding module.

So as a newb, what is the basic way to package up a function like this?

Reply via email to