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: Mon, 10 Dec 2012 23:31:40 +0000
To: public-script-coord@w3.org
Message-ID: <bug-16767-3890-fGnct6RBhY@http.www.w3.org/Bugs/Public/>

--- Comment #17 from Cameron McCormack <cam@mcc.id.au> ---
(In reply to comment #16)
> That's a bit better, but there are still some weird artifacts:
> 1)  Why is passing a platform object that does not support indexed
> properties not ok?  Not that I can think of use cases for it...

As a sequence or array type?  Then it couldn't be distinguishable with those
interface types.  It seems more likely to be used in an API to me than needing
to distinguish a dictionary and a sequence type.

> 2)  Passing a Date or RegExp will work if your IDL looks like this:
>   void foo(sequence<long> arg);
> but not if the IDL looks like this:
>   void foo(long arg);
>   void foo(sequence<long> arg);
> which is a bit confusing.

Because the overload resolution algorithm and the type conversion algorithms
aren't in sync?  I'll fix that.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 10 December 2012 23:31:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC