in reply to Re: Pass by value acts like pass by reference
in thread Pass by value acts like pass by reference

This is exactly what is happening.
  • Comment on Re^2: Pass by value acts like pass by reference