[WebIDL] Sequences and arrays

Hello WG.
I’ve finally fixed up sequences in Web IDL, and also added an array
type. The difference is that:
 * sequences are effectively pass-by-value, represented by a JS Array
 or a Java array object, and
 
 * arrays are pass-by-reference, represented by a JS host object that
 acts similarly to an Array (including having Array.prototype in its
 prototype chain, but not supporting sparse arrays) or by a Java
 object that implements an interface defined in the spec that allows
 access to elements and the array length.
JS Array objects can also be passed to host objects expecting an array,
but the Array object will be converted into the special host object.
 http://dev.w3.org/2006/webapi/WebIDL/#idl-sequence
 http://dev.w3.org/2006/webapi/WebIDL/#idl-array
 http://dev.w3.org/2006/webapi/WebIDL/#es-sequence
 http://dev.w3.org/2006/webapi/WebIDL/#es-array
 http://dev.w3.org/2006/webapi/WebIDL/#java-sequence
 http://dev.w3.org/2006/webapi/WebIDL/#java-array
Comments welcome.
-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Tuesday, 7 July 2009 07:45:22 UTC

AltStyle によって変換されたページ (->オリジナル) /