W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Web IDL sequence<T> and item() method

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 12 Dec 2011 10:37:50 +1100
Message-ID: <4EE53ECE.6050309@mcc.id.au>
To: public-webapps@w3.org
On 12/12/11 2:21 AM, Boris Zbarsky wrote:
> Last I checked, defining an interface that takes an in parameter that
> can be a nodelist or JS Array of nodes needs to use sequence, no? Or am
> I confusing it with array again?

The confusing thing is probably that for the case where you want to take 
in an array as a parameter, and the receiving object will not modify the 
array or keep a hold of it, both sequence<T> and T[] will work.
Received on Sunday, 11 December 2011 23:38:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:49 GMT