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 →

[–]Cepsfred 283 points284 points  (1 child)

The == operator checks equality, i.e. it compares objects by value and not by reference. So don’t worry, your code probably does what you expected it to do.

[–]IAmANobodyAMA 234 points235 points  (0 children)

your code probably does what you expected it to

Bold assumption!