Templates and non-public methods

Started by
10 comments, last by foreignkid 18 years, 3 months ago
Quote:Original post by Samurai Jack
thank you everyone! >Troll: The unref function is just like release except it does not destroy the object when the counter gets bellow one.


Yeah, but why? If Unref is the last call made instead of release, the object won't delete and you'll leak. The only purpose I can see is that it's a crutch for those times you don't accurately remove references, but you "know" there's some owner some where that has it. It just seems like it promotes bad practices but really doesn't provide any benefit.
Advertisement
http://www.gamedev.net/community/forums/topic.asp?topic_id=339511

This topic is closed to new replies.

Advertisement