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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767

--- 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.3.1 : Wednesday, 8 May 2013 19:30:08 UTC