It would be useful for custom garbage collection schemes + debugging such schemes if we could access he reference count of a datum with some method.
I know BYOND already internally stores this.
ID:2772176
Feb 28 2022, 8:17 am
|
|||||||
Resolved
| |||||||
Mar 2 2022, 1:00 pm
|
|
Lummox JR resolved issue (Not Feasible)
|
This has been brought up before. It's unfortunately not possible. The primary reason is that the very act of loading a value for the proc and putting it on the stack would distort the reference count. There are temporary vars inside of a proc that might hold refs, so those would also be relevant.
|
In response to Lummox JR
|
|
I think even so people can take that in for account and still get a rough idea of how many references they have left to get rid of. A lovely feature
|