Thread overview
[Issue 16044] __traits(allMembers) returns empty tuple for subpackages
Jul 18, 2016
det
May 01, 2017
Alexey Kulentsov
Aug 25, 2020
Dlang Bot
Aug 25, 2020
Dlang Bot
Apr 09, 2021
Dlang Bot
July 18, 2016
https://issues.dlang.org/show_bug.cgi?id=16044

det <2krnk@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |2krnk@gmx.net

--
May 01, 2017
https://issues.dlang.org/show_bug.cgi?id=16044

Alexey Kulentsov <crimaniak@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crimaniak@gmail.com

--- Comment #1 from Alexey Kulentsov <crimaniak@gmail.com> ---
For DMD64 D Compiler 2.074.0 result is:

abc/def/package.d-mixin-7(7): Deprecation: package abc.def is not accessible
here, perhaps add 'static import abc.def;'
tuple()

So abc.def package is not accessible from abc/def/package.d
But accessible if I move/rename file to abc/def.d and result is tuple("object",
"xyz", "_staticCtor1")

So it seems, for now, the problem is in the availability of the module, not in the allMembers trait.

--
August 25, 2020
https://issues.dlang.org/show_bug.cgi?id=16044

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@NilsLankila created dlang/dmd pull request #11619 "fix issue 16044 - __traits(allMembers) returns empty tuple for subpackages" fixing this issue:

- fix issue 16044 - __traits(allMembers) returns empty tuple for subpackages

  This fix is only for the members that are not imports.
  There are other issues opened (11595, 17057, 20008) for that.

https://github.com/dlang/dmd/pull/11619

--
August 25, 2020
https://issues.dlang.org/show_bug.cgi?id=16044

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11619 "fix issue 16044 - __traits(allMembers) returns empty tuple for subpackages" was merged into master:

- 60a7248fda7528eb0f459bdcc50c74f71edf960a by Nils Lankila:
  fix issue 16044 - __traits(allMembers) returns empty tuple for subpackages

  This fix is only for the members that are not imports.
  There are other issues opened (11595, 17057, 20008) for that.

https://github.com/dlang/dmd/pull/11619

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=16044

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12411 "[dmd-cxx] fix Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline" was merged into dmd-cxx:

- 11a067808e5f11c762262cfa04ad5c5e44f49814 by Nils Lankila:
  [dmd-cxx] fix issue 16044 - __traits(allMembers) returns empty tuple for
subpackages

https://github.com/dlang/dmd/pull/12411

--