February 1999 Draft
JavaScript 2.0
Operator Overloading

Thursday, February 11, 1999


Operator overloading is useful to implement Spice-style units without having to add units to the core of the JavaScript 2.0 language. Operator overloading is done via an optional library that, when imported, exposes several additional methods of the Object class. This library is analogous to the internationalization library in that it does not have to be present on all implementations of JavaScript 2.0; implementations without this library do not support operator overloading.

Waldemar Horwat
Last modified Thursday, February 11, 1999