2 problems I can't get my head around
Walter Bright
newshound2 at digitalmars.com
Mon Nov 26 17:56:26 PST 2012
On 11/27/2012 4:30 AM, Manu wrote:
> template isEnum(alias T) if(is(T)) {
It isn't clear what is desired here. Given:
enum E { A, B }
E is the enum tag name, which is quite different from the enum members A
and B. And, the enum tag name is indistinguishable from the enum type.
Furthermore, an enum member is indistinguishable from an enum value. So,
I suggest instead:
isEnumType
and:
isEnumValue
More information about the Digitalmars-d
mailing list