allMembers returns no members for a package
Rikki Cattermole via Digitalmars-d
digitalmars-d at puremagic.com
Fri Dec 19 04:17:52 PST 2014
On 19/12/2014 3:51 p.m., Rikki Cattermole wrote:
> On 19/12/2014 3:12 p.m., aldanor wrote:
>> pkg/
>> c/
>> module1.d
>> module pkg.c.module1;
>> int x = 1;
>> package.d
>> module pkg.c;
>> public import pkg.c.module1;
>> test.d
>> module pkg.test;
>> unittest {
>> import std.stdio;
>> import pkg.c;
>> writeln(pkg.c.x);
>> writeln(__traits(allMembers, pkg.c));
>> }
>>
>> Results in "1" printed and then nothing.
>>
>> Why does allMembers fail on a package, is that supposed to happen?
>
> No, I have PR open for more or less this.
My bad, read it too quickly.
More information about the Digitalmars-d
mailing list