The value of the this
parameter is a copy of the address of an
instance; it is not a copy of the instance itself. Consequently, when you
reassign an instance variable inside an instance method, you change the
value of the instance variable in the target instance.
Thus, if the value of m
is a movie, and you call an instance method
with m
as the target, and the instance method changes the value of
an instance variable, then you see the instance-variable
change in the movie assigned to m
.