4 ms·
This is more of a question than a comment, but isn't it the case that sometimes garbage collection will succeed where reference counting will fail? I've used a
by twopoint718 18y ago
This is more of a question than a comment, but isn't it the case that sometimes garbage collection will succeed where reference counting will fail?
I've used a kind of reference-counted pointer in C++, but it'll fail if the reference graph isn't basically a DAG, (e.g. if you have some kind of circular reference). Do garbage collectors catch this when reference counting won't?
- cpr 18y agoYes.