Ref add-on cannot cast to compatible type

Started by
1 comment, last by iraxef 9 years, 8 months ago

When I have a ref and I want to cast<> it to a usable type to work with, I can only successfully cast<> to the type that was assigned to the ref and not necessarily something within the class hierarchy of what was assigned to ref. That is, if I stored a handle to an application-registered derived class, casting to the base class fails.

UPDATE: I see there's a TODO in CScriptHandle::Cast().

Advertisement


UPDATE: I see there's a TODO in CScriptHandle::Cast().

Exactly :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Do you think it would make sense to update http://www.angelcode.com/angelscript/sdk/docs/manual/doc_datatypes_ref.html with a TODO as well?

This topic is closed to new replies.

Advertisement