Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualrandomguy12345

Posted 06 September 2012 - 07:31 PM

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.

#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.

PARTNERS