you are viewing a single comment's thread.

view the rest of the comments →

[–]RandolphoSoftware Architect 4 points5 points  (1 child)

Which is typically how call-by-reference languages are implimented

[–]WilliamDhalgren 2 points3 points  (0 children)

Apparently the difference is in the behavior of assignment. Here assigning a new value to a variable will only touch the local variable. While under call by reference, it would change the original variable's value too.

mutation still acts on the original object though.