[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebIDL cleanup
On 6/4/12 11:05 PM, Kenneth Russell wrote:
Overloading and union support would probably have to be implemented
similarly.
Yep.
In WebKit's code generator (which is not currently Web
IDL), overloading is implemented with a series of nested if-tests
within a single function called by the JavaScript engine.
Indeed, as it has to be.
Unions would be much the same to _set_ the union value, but then with
more tests in the actual implementation on what type the union value
ended up being...
-Boris
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------