Suppose I have:
module test; class X { } class Y : X { } Y y = new Y; X x = y; assert(is(typeof(x) == test.Y); // this assertion will failassert(typeid(x).toString() == "test.Y"); // this assertion will pass
Is there a way I can check the type of x without doing a string comparison? -Eric