[swift-users] Understanding pass-by-value

Ryan Lovelett ryan at lovelett.me
Fri Nov 4 11:48:34 CDT 2016

> I often end up “printing” the addresses or using GDB to take an inside
> look.

That is a really simple interrogation technique I wish I had thought of
that! Thank you!

> One thing that tripped me up: if you use inout variables, the observers
> will be triggered once the function completes. Even if the function never
> changed the data referred to. (This is now documented behaviour)

Could you provide a link to such documentation? I think that would be
interesting to read.

More information about the swift-users mailing list