muralimohan962
09/30/2018, 2:22 PMHamza
09/30/2018, 2:23 PMmuralimohan962
09/30/2018, 2:23 PMHamza
09/30/2018, 2:23 PMmuralimohan962
09/30/2018, 2:23 PMHamza
09/30/2018, 2:24 PMmuralimohan962
09/30/2018, 2:24 PMmuralimohan962
09/30/2018, 2:24 PMHamza
09/30/2018, 2:25 PMHamza
09/30/2018, 2:25 PMkarelpeeters
09/30/2018, 3:06 PMString
and Int
are both special cases.karelpeeters
09/30/2018, 3:08 PMcopy
isn't magically a deep copy, it only copies the object itself, not the contents of the fields.muralimohan962
09/30/2018, 3:19 PMmuralimohan962
09/30/2018, 3:20 PMgcx11
09/30/2018, 7:50 PMperson1.age === person2.age
is True, but that doesn't mean that variables point to same object, it gets translated to ==
for value types, see https://kotlinlang.org/docs/reference/equality.html#referential-equalitykarelpeeters
09/30/2018, 7:50 PMkarelpeeters
09/30/2018, 7:51 PM===
and ==
are indeed the same for primitives, but that's not really relevant here.gcx11
09/30/2018, 7:53 PMkarelpeeters
09/30/2018, 7:53 PM