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 05:29:57 +0000
To: public-script-coord@w3.org
Message-ID: <bug-16767-3890-8dMjmAP0vF@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767

--- Comment #22 from Cameron McCormack <cam@mcc.id.au> ---
OK, I withdraw my earlier held reservations about converting any kind of
platform object to sequences:

 
http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.587;r2=1.589;f=h

This change:

  * makes any kind of object acceptable to be converted to sequences, array
types,
    dictionaries, callback functions and callback interface types -- except for
    Date and RegExp objects, since they're only treated as their corresponding
    IDL types (or object, of course)

  * makes the corresponding change for the "convert ES value to IDL union type
    value" algorithm

  * ensures that the "convert ES value to IDL sequence value" and "... to
    dictionary value" and "... to callback function/interface value" algorithms
    all prevent a Date or RegExp object from being converted

I think this makes overload resolution and type conversion even simpler than it
was before.

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

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