In Swift, structures and value types are passed by default, as in C #. But C # also has a very useful ref keyword, which forces the parameter to be passed by reference, so that the same instance can be changed inside the function and then accessible from the call area. Is there a way to achieve the same result in Swift?
pass-by-reference swift
Max Yankov Jun 02 '14 at 22:05 2014-06-02 22:05
source share