This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

this Reference unchangeable??  RSS feed

 
Dolfandave Uyemura
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I heard/read something in regards to the 'this' reference. I read about using 'this' and understand its use but the question pertained to whether something was unchangeable. Is anyone familiar with the unchangeable part? What is unchangeable? I understand the use of 'this' but couldn't recall seeing anything to the latter. Thanks in advance.
DDAVE
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"this" is a readonly variable and can't be changed.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!