3 ms·
Well, at times having a parent pointer is rather useful! E.g. a callback registration will be able to unregister itself from everywhere where it has been regist
by _flux 1y ago
Well, at times having a parent pointer is rather useful! E.g. a callback registration will be able to unregister itself from everywhere where it has been registered to, upon request. (One would want to use weak references in this case.)
- alfons_foobar 1y agoFair point! Maybe I am just a bit burned by this particular example I ran into (where this pattern should IMO not have been used).