How to test for equality of types?

Matthias Walter xammy at xammy.homelinux.net
Fri May 18 03:06:45 PDT 2012


Hi,

how do I test two types for equality? Suppose I have A and B aliasing
some type(s), how do I find out if they are aliases the same thing?

I tried the "is(A == B)" expression, but this does not always work (tell
me if I shall give an example).

On the other hand, according to the spec the IsExpression is not
supposed to compare two aliases with each other.

Best regards,

Matthias


More information about the Digitalmars-d-learn mailing list