Introspecting a package for submodules
Anonymouse
zorael at gmail.com
Mon Aug 24 23:40:56 UTC 2020
On Monday, 24 August 2020 at 22:32:52 UTC, Anonymouse wrote:
> `__traits(allMembers, std.algorithm)` evaluates to nothing, but
> replace it with `std.algorithm.searching` and it does.
`std.algorithm` makes for a bad example as it is actually empty
save for imports. Just read it as `std.datetime` please, which
has struct members.
> `__traits(allMembers, std.datetime)` evaluates to nothing, but
> replace it with `std.datetime.systime` and it does.
This makes everything really difficult. Is it intentional?
https://run.dlang.io/is/UAHiAo
More information about the Digitalmars-d-learn
mailing list