Subj : defining operators for custom classes (SpiderMonkey) To : netscape.public.mozilla.jseng From : Chris Tchou Date : Mon Oct 11 2004 06:30 pm Is it possible to do 'operator overloading' for custom classes in SpiderMonkey? I.E.: -------------------------------- var objA = new MyObject(); // custom class backed by native source var objB = new MyObject(); var objC = objA + objB; // call some native source function to calcualte the result --------------------------------- Looks alot better than var objC = objA.Plus(objB); -Chris .