equality operator overload on objects #365
Unanswered
bytezeroseven
asked this question in
Q&A
Replies: 3 comments 6 replies
-
I don't think that is currently possible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
More specifically, objects have identity so overloading equality doesn't make sense. At that point it's no longer javascript. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How will I go about overloading equality operator on two objects? Both operands will be objects. I know how to do it when one operand is a primitive. Can someone provide me intructions as to what I should do in the C files?
Beta Was this translation helpful? Give feedback.
All reactions