4 ms·
I haven't spent all that much time taking a look at this (quick feedback: the PDF on that website is a bit annoying to read, since the "viewport" is really smal
by saagarjha 8y ago
I haven't spent all that much time taking a look at this (quick feedback: the PDF on that website is a bit annoying to read, since the "viewport" is really small), but how does this compare to a solution such as zeroing weak pointers in ARC?
- chrisseaton 8y agoIn a language like C and its conventional implementations, how do you intend to find all the pointers in order to zero them?
- saagarjha 8y agoMike Ash's article goes into more depth into how something like this is implemented in Objective-C: https://www.mikeash.com/pyblog/friday-qa-2010-07-16-zeroing-weak-references-in-objective-c.html https://www.mikeash.com/pyblog/friday-qa-2010-07-16-zeroing-.... To put it short, references are kept in a big dictionary and zeroed out on deallocation.