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

Re: [WebIDL] interface objects with [Constructor] and [[Call]]

From: Simon Pieters <simonp@opera.com>
Date: Fri, 08 Oct 2010 08:33:06 +0200
To: "Cameron McCormack" <cam@mcc.id.au>
Cc: "Garrett Smith" <dhtmlkitchen@gmail.com>, "Mark S. Miller" <erights@google.com>, "Maciej Stachowiak" <mjs@apple.com>, "James Graham" <jgraham@opera.com>, "Travis Leithead" <travil@microsoft.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, annevk@opera.com
Message-ID: <op.vj8u5gdwidj3kv@simon-pieterss-macbook.local>
On Fri, 08 Oct 2010 08:24:57 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:

> Simon Pieters:
>> At this point I'm confused at what you intend to change the spec to say.
>
> Sorry for being unclear.  The practical options to choose between are:
>
>   1. Special case XHR to allow calling it to do the same thing as
>      constructing it, and just throw a TypeError for other constructors
>      called as functions.
>
>   2. Allow all constructors to be called as functions and have the same
>      behaviour.
>
> I’ll make the spec do (2).

That's much clearer. Thanks!

-- 
Simon Pieters
Opera Software
Received on Friday, 8 October 2010 06:34:19 UTC

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