in a template argument, specify which object member to access?

cy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 8 14:46:06 PST 2016


On Monday, 8 February 2016 at 22:38:45 UTC, Mengu wrote:
> i believe you can use __traits(getMember) there.

Great! Should have refreshed before sending that reply...

I wonder if mixin("a."~member) is better or worse than 
__traits(getMember,a,member)...


More information about the Digitalmars-d-learn mailing list