getting type of object

Bill Baxter dnewsgroup at billbaxter.com
Sun Nov 11 13:44:14 PST 2007


0ffh wrote:
> 
> May I "if (theInstance.classinfo==TheClass.classinfo)"?
> 
> Seems to work...

Does the comment about Typeinfo and Polymorphism help you at all?
http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Phobos/Object

--bb


More information about the Digitalmars-d-learn mailing list