7 Oct
2013
7 Oct
'13
2:40 p.m.
Larry Evans wrote:
On 10/07/13 08:34, Julian Gonggrijp wrote:
Please note that I'm not disputing that reference counting has a clear advantage to single ownership in cases like these. I'm just saying that dangling or expired pointers can still be a pitfall despite that advantage.
I see your point. the rtp pointer has the advantage of much less overyhead, but the disadvantage of makeing it harder to detect dangling pointers and program a workaround.
Is that a good summary?
Truthful but incomplete. Rich-typed pointers also prevent accidental cyclic ownership, while allowing for cyclic ownership by design that can be undone, i.e. without causing memory leaks. HTH, -Julian