Shouldn't __traits return Tuples?
Tomas Lindquist Olsen
tomas.l.olsen at gmail.com
Mon Mar 30 08:13:45 PDT 2009
On Mon, Mar 30, 2009 at 5:11 PM, Jarrett Billingsley
<jarrett.billingsley at gmail.com> wrote:
> 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 ;)
>
I think we need D2 support first ;)
More information about the Digitalmars-d
mailing list