setTypeInfo???

bearophile bearophileHUGS at lycos.com
Sun Aug 31 03:32:20 PDT 2008


bearophile Wrote:

I try again :-)

template IsArray(T) {
    const bool IsArray = !is(T == class) && !is(T == struct) &&
                         is(typeof(T.length)) && is(typeof(T.sort))
                         && is(typeof(T.reverse)) && is(typeof(T.dup));
}



More information about the Digitalmars-d mailing list