Use std.traits.getSymbolsByUDA to access members of instance.

Jonathan JonathanILevi at gmail.com
Tue Oct 2 03:30:50 UTC 2018


I can use `std.traits.getSymbolsByUDA` to get all the members of 
a class that have a particular UDA `getSymbolsByUDA(ValueType, 
UDA)`.

But how do I get the values with it?

Is there a more convenient way than `__traits(getMember, value, 
getSymbolsByUDA(ValueType, UDA)[0].stringof)`?


More information about the Digitalmars-d-learn mailing list