5 Sep
2018
5 Sep
'18
6:55 a.m.
On 2018-09-05 13:49, Petr Viktorin wrote:
I'm not at a computer right now, but AFAIK if <class int>'s refcount drops to zero, we still try to deallocate it, and that causes an assertion and terminates the interpreter.
You're right but that's besides the original point. If code uses refcounting correctly (regardless of using an "old" or "new" API), then the class int will never be deallocated.