Shouldn't __traits return Tuples?
Jarrett Billingsley
jarrett.billingsley at gmail.com
Mon Mar 30 08:11:51 PDT 2009
On Mon, Mar 30, 2009 at 10:57 AM, Max Samukha
<samukha at voliacable.com.removethis> wrote:
>>Also the following doesn't work with dmd, returns 0 for all members:
>>
>>Base base = new Base;
>>auto members = __traits(allMembers, typeof(base));
>>foreach(m; members)
>> writefln(base.classinfo.getMembers(m).length);
>
> getMembers has not been implemented, AFAIK
It has in LDC ;)
More information about the Digitalmars-d
mailing list