retain count

Monkey Forums/Monkey Programming/retain count

NoOdle(Posted 2012) [#1]
Is there any way to get the retain count or similar of an object from inside monkey? Could be tricky to manually track...


Xaron(Posted 2012) [#2]
Ahem... what exactly is a "retain count"?


smilertoo(Posted 2012) [#3]
cant you just put the objects onto a list then get the length of the list?


ziggy(Posted 2012) [#4]
If you mean the active reference variables that are "pointing" to the given object instance, there's no way to get it as some of the target GC do not provide this information. Also, notice that Monkey GC are not single pass ref-counted garbage collectors, as all of them handle cyclic referencing properly.


NoOdle(Posted 2012) [#5]
Thanks ziggy, I thought that was the case but wanted to make sure.