On Sun, Apr 4, 2010 at 5:26 AM, Harry Kakueki <list.push / gmail.com> wrote:
> Thanks for all the explanations, everybody.
> I could pretty much understand what was happening when I saw it happen
> but it just surprised me that it worked that way.
> I'm sure I have read that method parameters are local variables in that method.
> Either that is not quite right or I have misinterpreted what that means.
> Apparently, the latter. I need to read up on this.

That is true: method parameters are local variables in that method
that are initially bound to what the caller passes as arguments to the
method.

The rest of your example illustrates what happens when you call
mutating methods on objects, or reassign those variables.

Jesus.