🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Class Destructors
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement