Not sure if this is helpful: module Foo f(g,x) = g(x) end
module X using Foo g(x) = 2x f(x) = Foo.f(g,x) end module Y using Foo g(x) = 3x f(x) = Foo.f(g,x) end X.f(4) Y.f(4)
Not sure if this is helpful: module Foo f(g,x) = g(x) end
module X using Foo g(x) = 2x f(x) = Foo.f(g,x) end module Y using Foo g(x) = 3x f(x) = Foo.f(g,x) end X.f(4) Y.f(4)