Quote:
|
because nothing will be using myObj anymore as we knew it inside doSomething...
|
Inaccurate sde, sorry.
You never used myObj to start with...
You used a
copy of myObj's
reference. Not myObj.
There were
two myObj-references in your program. Your function used one of them: the
body-double in the world of memories...
Hey! I gotta remember this one...