W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 16767] Allow user objects for Array[] types

From: <bugzilla@jessica.w3.org>
Date: Tue, 11 Dec 2012 00:55:43 +0000
To: public-script-coord@w3.org
Message-ID: <bug-16767-3890-0948PZzVzu@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767

--- Comment #20 from Boris Zbarsky <bzbarsky@mit.edu> ---
> What is the desired behaviour here if you pass in a say Int32Array?  Should it
> select the sequence<> overload, and run a bit slower?  Or should it throw?

Current spec says select the sequence<> overload, and it what at least Gecko
implements.  I haven't checked other browsers offhand...

> Is it maybe not worth supporting this automatically, and instead requiring the
> spec author to have an explicit overload to take a NodeList?

I have no problem with converting platform objects that have indexed properties
to sequences.  I don't even have a problem with doing it for platform objects
that _don't_ have indexed properties.  Given that overload resolution and union
subtype conversions define an order in which you try things, I don't really see
a problem with having two things that can both convert to sequence be
distinguishable.  After all, we distinguish between all sorts of stuff that can
convert to string!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 11 December 2012 00:55:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC