Frank Benoit schrieb: > What about interfaces? I mean, this is a point that annoyes me a lot in D, that interfaces (instances) cannot be treated like objects. I cannot do
if( someiface == someobj ){ ... } With that technique, the compiler could do a dynamic cast to Object in place, do the null checks and then call opEquals. Certainly, this should also work for the other methods of Objects like toHash, toString, ...