Hi
Will this achieve what you want?

module Z
g()=println("Z.g")
function h()
    (current_module()).g()
end
end
module X
using Z
g()=println("X.g")
function f()
    Z.h()
    (current_module()).g()
end
end
module Y
using X
g()=println("Y.g")
X.f()
end

using Y

It prints Y.g twice. Or do you want h() to use X's g()?

Reply via email to