sclytrack at pi.be wrote:
> 1. How can I do a static if on a type? (Thanks in advance.)
See the is-expression:
http://www.digitalmars.com/d/expression.html#IsExpression
example:
static if (is (T == double)) {
something();
} else {
something_else();
}
/Oskar