子包从另一个子包中隐藏一个包

Child Package Hides a Package from Another Child Package

我有三个包:Vendor.AppleVendor.PearPear

Vendor.Apple中,需要调用包Pear中的子程序。但是,导入 (with) Pear 包,然后尝试在其中调用过程 Eat,导致编译器认为 Eat 过程在 Vendor.Pear 中.这会导致以下错误:

"Eat" not declared in "Pear"

有没有办法 with 使用绝对包路径;解决子包 Apple 可以访问隐藏我们试图导入的包的 "token" 的事实?

所有库级包都在包 Standard 中隐式声明,参见 ARM 10.1.1

Standard.Pear.Eat(你不需要 with Standard;,事实上我什至不确定这是否合法!)