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 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC