[Issue 21467] Imported modules/packages are inaccessible outside the importing module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 11 15:10:51 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21467

--- Comment #2 from Max Samukha <maxsamukha at gmail.com> ---
If imports are not members, then:

__traits(allMembers, importing_module) must not return imports;
__traits(hasMember, importing_module, "imported_module") must return false;
it must be impossible to refer to the imported module as
'importing_module.imported_module' everywhere including the importing module.

Also, being an import and being a member are not conceptually exclusive. "`b`
is not a member of `a`, it's an import" sounds too dogmatic to me.

--


More information about the Digitalmars-d-bugs mailing list