The example below has two modules that define methods of function f for 
different parameter types.
Both modules are imported.
It seems like that "using" the second module causes the first one to 
disappear.
Is that the intended behaviour?


!/Applications/Julia-0.3.0-rc4.app/Contents/Resources/julia/bin/julia

module m1

    export f

    f(x::String) = println("String: " * x)
    f(x)         = println("     ?: " * string(x))
end


module m2

    export f

    f(x::Int)    = println("   Int: " * string(x))
end

using m1
using m2

f(7)
f("Foo")

output:

   Int: 7
ERROR: `f` has no method matching f(::ASCIIString)


Reply via email to