[swift-users] Understanding pass-by-value

Ryan Lovelett ryan at lovelett.me
Fri Nov 4 11:45:46 CDT 2016


> Do you mean, "did I make two copies of the `Data`, one in a top-level
> variable named `d` and the other in a parameter named `buffer`"?

That is more precisely what I meant. Mutters to self: "Precision of
language, Ryan!"

That fairly completely answers my quandary. Thank you for your time and
energy.

Just out of curiosity if I looked at the SIL, would that allow me to see
any of that in action? Or would it be too opaque?


More information about the swift-users mailing list