How to check type of an object to a class name?

Chris Pons cmpons at gmail.com
Mon Mar 5 16:37:05 PST 2012


Is it possible to check the type of an object to a class name?

//Something like this:
Class test
{
//...
}

assert(is(anonObject == typeof(test))


More information about the Digitalmars-d-learn mailing list