On Friday, 11 May 2012 at 23:47:18 UTC, Walter Bright wrote:
I tend to agree. I think this is better (I've never gotten around to implementing it):enum hasMember(T, string name) = __traits(hasMember, T, name); I.e. analogously to struct templates.
Mmmm... I like the idea/syntax, but not the word "enum". It certainly has nothing to do with enums, so I think it'd be even more confusing in that regard. :)
