is `allMembers` useless for modules?

FeepingCreature feepingcreature at gmail.com
Wed Jan 16 06:34:41 UTC 2019


On Wednesday, 16 January 2019 at 02:05:43 UTC, Andrei 
Alexandrescu wrote:
> On 1/14/19 2:57 AM, FeepingCreature wrote:
>> there's no way to detect if a symbol is a module and there's 
>> no way to go from the package to the modules it contains.
>
> This needs to be fixed, have you submitted an issue yet?
>
>> It does not list named imports at all, for basically no reason 
>> I can tell.
>
> This, too, should be listed as a separate bug.

Thank you, filed as 
https://issues.dlang.org/show_bug.cgi?id=19589 and 
https://issues.dlang.org/show_bug.cgi?id=19590 : "Impossible to 
determine if a symbol returned by __traits(allMembers) is a 
module, or package" and "Impossible to iterate imported packages 
with allMembers".


More information about the Digitalmars-d mailing list