UDA status

simendsjo simendsjo at gmail.com
Mon Mar 11 12:03:48 PDT 2013


I've been trying UDAs today, but I'm hitting roadblocks all the 
time..
For instance:
     @(10) struct A;
     pragma(msg, __traits(getAttributes, A)); // Empty
     @(10) struct B {}
     pragma(msg, __traits(getAttributes, B)); // tuple(10)

I've encountered several other things that has been difficult, 
especially when combining values and types and trying to 
manipulate these (might be some Tuple related stuff I'm not 
getting though).

Are there many outstanding issues regarding UDAs? Many fixes in 
2.063?
I cannot find many tickets regarding UDAs in bugzilla.

Seems std.traits isn't updated for UDAs either.

So what's the status of UDAs? Anyone have experience using them 
yet?


More information about the Digitalmars-d-learn mailing list