Overriding the == operator, like in Java/Lua/Python/whatever.

Soni L. fakedme+es at gmail.com
Sat Jan 3 17:52:58 PST 2015

I've been looking and looking and looking and I couldn't find a way to 
override == to make 2 different instances of MyPoint compare == if they 
have the same coordinates. (I guess this also applies to String objects 
and stuff but I haven't tested that)

So how do I do this?

(PS: yes, I know, Java has an .equals method, not overridable ==, but 
it's basically the same thing)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150103/17da9573/attachment.html>

More information about the es-discuss mailing list