Kotlin Discussions
Function parameters are "val" not "var"?
abreslav
February 28, 2013, 4:54pm
8
This is intended.Only the reference itself is passed by value.
2 Likes
How to pass a reference to an instance
show post in topic
Related Topics
Topic
Replies
Views
Activity
Regarding function arguments
Language Design
3
1202
June 24, 2018
Curiosity about parameters
Language Design
3
1510
January 26, 2020
Can't Array<String> be passed to Array<String?> parameter?
4
8091
January 27, 2013
Mutable Function Parameters
Language Design
1
6316
July 18, 2017
Mutable function parameters
Language Design
4
2403
July 11, 2023