[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Last-minute comments/questions for 1.0.1 spec/tests

No, ensuring that these === conditions are false doesn't require any work. It just boils down to malloc() returning different pointers as long as you don't free them ;-)

Ensuring that these === conditions are true does require extra work, as it requires maintaining a hashtable of WebGLUniformLocation pointers. And if we also wanted to ensure === also for added JavaScript properties on these objects, as is required for WebGLExtensions, yet more work would be needed. So I'm very happy to remove this requirement.


On 30/11/11 10:57 PM, Mark Callow wrote:
Is ensuring that these are false going to require work by the
implementation? If so, I'd prefer that work be directed to ensuring they
are the same.



On 01/12/2011 08:21, James Robinson wrote:

If we are OK with not caching, then we need to mandate not caching in the spec or people will hang expandos on the return value. This has happened before for other specs and been a real mess to clean up.

This means in particular the following should be false and tested:

context.getUniformLocation(program, "foo") ===
context.getUniformLocation(program, "foo")
context.getUniformLocation(program, "foo").happy = "lala";
context.getUniformLocation(program, "foo").happy == "lala";

Same goes for any other API that returns a JS object instead of a JS

- James


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