W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: [WebIDL] overloading and fallback

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 17 Jun 2009 12:47:55 +0200
To: "Cameron McCormack" <cam@mcc.id.au>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.uvnz95uo64w2qv@annevk-t60>
On Wed, 17 Jun 2009 08:28:14 +0200, Cameron McCormack <cam@mcc.id.au> wrote:
> Anne van Kesteren:
>> In XMLHttpRequest in the send() method is overloaded to take a
>> Document and a DOMString. All non-Document objects are treated with
>> the semantics of DOMString. (Attempt to stringification etc.) Is there
>> a way to specify this without explicit language in the specification?
>
> I added [AllowAny] to support this:
>
>   http://dev.w3.org/2006/webapi/WebIDL/#AllowAny

So a.f(1.23); throws in the example because the method is overloaded? I.e. it would not throw if the method did not accept an A object as argument?

If so, I suppose that works great, thanks!


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 17 June 2009 10:48:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT