Re:Ask HN: What do you think of Objective-C?
by twopoint718 on Thursday December 18, 2008 @12:03PM
(#402281)
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?
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?