getting type of object
0ffh
frank at frankhirsch.youknow.what.todo.net
Sun Nov 11 13:52:41 PST 2007
Bill Baxter wrote:
> 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
I'll take that as a "yes"... =)
I was mainly concerned here if using the classinfo member counts
as a hackish OMGWhatHaveYouGoneAndDoneNow??? or if it's okay to.
Thanks, Frank
More information about the Digitalmars-d-learn
mailing list