InstanceOf

Jacob Carlborg doob at me.com
Sun Jun 23 11:22:06 PDT 2013


On 2013-06-23 17:29, Lemonfiend wrote:

> Using the .classinfo is what I looked at before asking here.
> However, according to the specs:
> ".classinfo applied to an interface gives the information for the
> interface, not the class it might be an instance of."
> So the i.classinfo and B.classinfo would be different?

That might be the case, didn't think of that. In that case you need 
casts anyway.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list