By convention, module names should be PascalCase. Thus, you'll end up with
# Foo.jl module Foo function foo() end end Julia being case sensitive, there will be no name clashes. vineri, 9 septembrie 2016, 15:29:48 UTC+2, Neal Becker a scris: > > 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? > >