Say there are two unrelated modules A and B that both use the function name 
`foo`. What is the most convenient way to use both modules? Do you have to 
import one of them, so as not to have `foo` conflict or is there an easier 
way?

module A
foo(x::Int)=1
export foo
end

module B
foo(x::Float64)=2
export foo
end

using A,B

foo(1) # ERROR: `foo` has no method matching foo(::Int64)
foo(1.0)

Reply via email to