is(T : long) vs is(T == long)

Caligo iteronvexor at gmail.com
Sat Mar 26 04:36:51 PDT 2011


What is the difference between this:
template isNumerik(T){
  enum bool isNumerik = is(T : long) || is(T : real);
}

and this:

template isNumerik(T){
  enum bool isNumerik = is(T == long) || is(T == real);
}


They both work and I can't find anywhere in the book where it talks about the :


More information about the Digitalmars-d-learn mailing list