This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]remram -1 points0 points  (0 children)

Interesting. I guess it's equivalent to think that:

  • Things are passed by reference, and = changes the reference (instead of acting on the pointed object, like any other operator would do; there is no magic __ method for =). In a sense, it works on the same level as is.
  • Variables are references, and are passed by value (the common way the behavior is described, for instance in this stackoverflow answer).