typeid() broken for interfaces?

Jonathan M Davis jmdavisProg at gmx.com
Tue Dec 4 10:41:01 PST 2012


On Tuesday, December 04, 2012 17:35:23 foobar wrote:
> That's a lot of duplication considering D already provides this
> in Object.

Though per the last major discussion on const-correctness and Object, it's 
likely that toString, toHash, opCmp, and opEquals will be removed from Object, 
in which case you'd need a derived class which implemented them to use any of 
them.

- Jonathan m Davis


More information about the Digitalmars-d mailing list