http://www.angelcode..._hierarchy.html
mentions that
Hierarchies can currently only be registered for reference types, not for value types.
why is it so. is it a design choice?
I mean , if i have value type(for performance reasons) of "ZFraction" and "ZIrrational" . Now i would definitely like them to be a subclass of "ZReal".
Just due to the above restriction, i will be forced to use reference type, which will make the performance poor, as it heap based.
Show differencesHistory of post edits
#1randomguy12345
Posted 05 September 2012 - 10:17 PM
http://www.angelcode.com/angelscript/sdk/docs/manual/doc_adv_class_hierarchy.html
mentions that
Hierarchies can currently only be registered for reference types, not for value types.
why is it so. is it a design choice?
I mean , if i have value type(for performance reasons) of "ZFraction" and "ZIrrational" . Now i would definitely like them to be a subclass of "ZInteger".
Just due to the above restriction, i will be forced to use reference type, which will make the performance poor, as it heap based.
mentions that
Hierarchies can currently only be registered for reference types, not for value types.
why is it so. is it a design choice?
I mean , if i have value type(for performance reasons) of "ZFraction" and "ZIrrational" . Now i would definitely like them to be a subclass of "ZInteger".
Just due to the above restriction, i will be forced to use reference type, which will make the performance poor, as it heap based.