Test if member is static variable
Temtaime via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 1 12:05:00 PDT 2014
Hi !
http://dpaste.dzfl.pl/e21082716396
Is there a way to optimize
static if(is(typeof(__traits(getMember, T, name).offsetof)) ==
false && is(FunctionTypeOf!(__traits(getMember, T, name)) ==
function) == false && __traits(compiles, &__traits(getMember, T,
name)))
?
I think there shoult be __traits(isStaticVariable), but there's
not.
Thanks !
More information about the Digitalmars-d-learn
mailing list