Does DMD cache template instantiations?

That is, is it preferred to do, for instance, either

    static      if (isIntegral!T && isUnsigned!(T)) {}
    else static if (isIntegral!T && isSigned!(T)) {}

or

    enum integral = isIntegral!T;
    static      if (integral && isUnsigned!(T)) {}
    else static if (integral && isSigned!(T)) {}

Reply via email to