Using inout keyword: is the parameter passed-by-reference or by copy-in copy-out (/call by value result)
问题 Question: Based on the information and discussion below: Are inout parameters passed-by-reference or by copy-in copy-out ? Based on the following SO threads, function parameters marked by the inout keyword is passed by reference : Does inout/var parameter make any difference with reference type? Is Swift Pass By Value or Pass By Reference Why doesn't inout pass by reference? We note that the two top-most threads are pre-Swift 2.0; I haven't been able to find any newer discussion on the