Notably be more explicit in the spec that as soon as you convert a module into a package.d source, then *that* now becomes the innermost package.
i.e:
---
// (std/internal.a.d): package = stdx
module stdx.internal.a;
import stdx.b;
void main()
{
foo();
}
---
---
// (stdx/b.d): package = stdx
// (stdx/b/package.d): package = stdx.b
module stdx.b;
package void foo()
{
}
---
In one directory structure, 'foo' is visible from stdx.internal.a, in another, 'foo' becomes undefined, and so you will need to explicitly say which package you want it to be visible from in order to compile.
---
// (stdx/b/package.d): package = stdx.b
module stdx.b;
package(stdx) void foo()
{
}
---
Comment #1 by robert.schadek — 2024-12-15T15:25:35Z