Skip to main content
GameDev.net gamedev.net
🔒 Locked

Class Destructors

Started by davekrusu Mar 22, 2007 at 5:15 PM 1 replies 1.5k views
Original Post
davekrusu
davekrusu
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
WitchLord
WitchLord
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 - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.