2009/12/1 Travis B. <[email protected]>:
> I know for a fact this question has been asked before; but, I never
> did see a definite answer.
>
> Is operator overloading possible in v8?

No.  There's no operator overloading in ECMAScript (apart from for the
built-in types).

> If not, is it possible to hack
> around the source to add said functionality?
>
> vectorf = vector1 + vector2;
>
> Instead of,
>
> vectorf = vector1.add(vector2);

That would be a lot of work and it would have no chance of getting
into the official V8 sources, since it is so non-standard for
ECMAScript.

>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to