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
1261
June 24, 2018
Curiosity about parameters
Language Design
3
1817
January 26, 2020
Can't Array<String> be passed to Array<String?> parameter?
4
8258
January 27, 2013
Mutable Function Parameters
Language Design
1
6432
July 18, 2017
Mutable function parameters
Language Design
8
4837
December 1, 2024