On 27 November 2012 03:56, Walter Bright <newshound2@digitalmars.com> wrote:
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