<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 4, 2016, at 10:12 AM, Rien via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">On 04 Nov 2016, at 17:48, Ryan Lovelett &lt;<a href="mailto:ryan@lovelett.me" class="">ryan@lovelett.me</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class="">I often end up “printing” the addresses or using GDB to take an inside<br class="">look.<br class=""></blockquote><br class="">That is a really simple interrogation technique I wish I had thought of<br class="">that! Thank you!<br class=""><br class=""><blockquote type="cite" class="">One thing that tripped me up: if you use inout variables, the observers<br class="">will be triggered once the function completes. Even if the function never<br class="">changed the data referred to. (This is now documented behaviour)<br class=""></blockquote><br class="">Could you provide a link to such documentation? I think that would be<br class="">interesting to read.<br class=""></blockquote><br class=""><a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/Properties.html#//apple_ref/doc/uid/TP40014097-CH14-ID254" class="">https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/Properties.html#//apple_ref/doc/uid/TP40014097-CH14-ID254</a><br class=""><br class="">Check the last ‘note’ in the Property Observer section.<br class="">You can also follow the link in there for more.<br class=""></div></div></blockquote></div><br class=""><div class="">There's also some deeper documentation about the accessor model in the compiler, here:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/jckarter/swift/blob/master/docs/proposals/Accessors.rst" class="">https://github.com/jckarter/swift/blob/master/docs/proposals/Accessors.rst</a></div><div class=""><br class=""></div><div class="">-Joe</div></body></html>