🎉 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

Started by
1 comment, last by WitchLord 17 years, 3 months ago
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
Advertisement
Yes.
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.

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

This topic is closed to new replies.

Advertisement