3 ms·
I realize this is not super clear, and in fact we have an open issue to improve on where reference counting are done automatically. At the moment, only global
by jerstlouis3 3y ago
I realize this is not super clear, and in fact we have an open issue to improve on where reference counting are done automatically.
At the moment, only global and member instances get automatically incremented/decremented.
There is a plan to extend that to local instances as well.
But also `delete object` will automatically decref and delete if reaching 0.
In practice, this all saves a lot of manual allocation/deallocation efforts compared to plain C, but it's all fairly low level (which was by design).