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

Re: [Public WebGL] Explicit unboxing for object identifiers



----- Original Message -----
> I suppose that if it is guaranteed that object identifiers will
> always
> reference the same object I could get away with extending those
> objects with new attributes.
> 
> E.g. instead of
> 
>     var dict = {};
>     dict[uniformLocation] = data;
> 
> one could do
> 
>     uniformLocation.data = data;
> 
> ...and the `data` attribute would remain even when you request the
> uniform location a second time?
> 

Firefox <= 10 didn't actually guarantee that, but if we ever turned around and made it a requirement that getUniformLocation always returns the same object, then we would also specify that added attributes must be preserved.

My feeling is we should wait to see how much demand there is for that (lurkers on this list, speak up).

Cheers,
Benoit

-----------------------------------------------------------
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
-----------------------------------------------------------