Or, more simply. If I import MyPackage
instead (I don't want to bring into scope the exported names of MyPackage
):
module MyOtherPackage
import MyPackage
# how to bring into escope MyPackage.Submodule exported functions?
end
How can I then bring into scope the MyPackage.Submodule
exported functions without making Submodule
itself be interpreted as a directy dependency? Is there a workaround around that?
Ok, this works:
module MyOtherPackage
import MyPackage
using .MyPackage.Submodule
...
end
Leandro Martínez has marked this topic as resolved.
Last updated: Oct 02 2023 at 04:34 UTC