What do you mean by passing function argument by r...
# language-evolution
v
What do you mean by passing function argument by ref?
p
I mean this:
Copy code
fun test(ref v: Int) {
  ++v
}

var x = 1
test(x)
println(x) // 2
Also for objects:
Copy code
fun test(ref v: Any?) {
  v = Test()
}
var x: Any? = null
test(x)
// x points to created in test object of class Test
May be explicitly specify passing by ref at call site. For example:
Copy code
test(ref x)