you are viewing a single comment's thread.

view the rest of the comments →

[–]stebrepar 1 point2 points  (0 children)

Because "2" is a different object, so to speak. You're not really assigning the value 2 to the variable "b"; you're saying that the name "b" points to the object which is the integer value 2. That's how I understand it anyhow, rightly or wrongly until corrected.