5 ms·
- Doubly linked lists. - Cocoa delegates that keep references to some parent of the objects that they're delegates of. - Some event listeners (in the same way
by giornogiovanna 8y ago
- Doubly linked lists.
- Cocoa delegates that keep references to some parent of the objects that they're delegates of.
- Some event listeners (in the same way as delegates).
I wouldn't say it's "rare". It popped up pretty often for me when I was writing Objective C.
- azinman2 8y agoWhat’s not solved with weak refs?
- giornogiovanna 8y agoIt can always be solved with weak references.
- fauigerzigerk 8y agoOnly if you know that you haven't solved it already: https://news.ycombinator.com/item?id=19093677 https://news.ycombinator.com/item?id=19093677
- ben-schaaf 8y agoWhat's not solved with manual memory management? The point is not that you can't solve it, the point is that reference counting isn't the whole solution for garbage collection unlike a tracing gc for instance.
- saagarjha 8y agoWeak reference counting is still reference counting.