• Advertisement
Sign in to follow this  

Class Destructors

This topic is 3987 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does the angelscript classes support destructors? Sorry if this is stated somewhere in the documentation, but I couldn't find anything on classes. I did look through your test_feature and found a little, but nothing using destructors. -- Dave Krusu

Share this post


Link to post
Share on other sites
Advertisement
Script declared classes doesn't support destructors, only application registered types. Though the VM makes sure to call the cleaning up the members when the object is finally freed.

I may add this in the future, but destructors for memory managed classes are not so useful as you don't have control over when they are called.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement