<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div id="AppleMailSignature"><br></div><blockquote type="cite"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Benjamin:<br><br>Implementation wise, weak does *not* currently have the effect of storing associated values. It does however mean that any object with weak references stays allocated after being deinited, until all the weak references are evaluated and zeroed (they are not zeroed when the object deinits, zeroing is done lazily. See <a href="https://www.mikeash.com/pyblog/friday-qa-2015-12-11-swift-weak-references.html" target="_blank">https://www.mikeash.com/<wbr>pyblog/friday-qa-2015-12-11-<wbr>swift-weak-references.html</a> for a detailed discussion).<br><br>However, this seems likely to change at some point when Greg's changes are merged. Weakly referenced objects would cause a side-table to be allocated, with the benefits that the object could be deallocated immediately after deinit, and only the side-table would hang around (to service attempts to access weak references, which would still be lazily zeroed). The small disadvantage of this (which only applies to instances that actually have had weak references) is that an extra pointer dereference is needed for retain, release, and weak reference access (and some other things). But a big advantage is that the side-allocation could be used for other things too, like stored properties.<br></div></div></div></div></div></blockquote></div></div></div></blockquote><br><div>Thanks for the reference to the article. &nbsp;I always meant to take the time to do that bit spelunking, never actually had the time, and the non-code documentation I found claimed it was out of date so I didn't bother reading it. &nbsp;Of all the possible implementations I conjectured after hearing about ARC when it was announced for Obj-C, this was not one of them. &nbsp;And frankly, reading it makes me want to quit working as a software developer and take up writing psychological thrillers as my job. &nbsp;:(</div></body></html>