W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 25050] Should Constructors behave like operations or (attribute) setters?

From: <bugzilla@jessica.w3.org>
Date: Wed, 26 Mar 2014 05:08:42 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25050-3890-uHWi7N3K9N@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25050

--- Comment #3 from Nils Barth <nbarth+w3bugzilla@google.com> ---
(In reply to Boris Zbarsky from comment #2)

Thanks for clarifying Boris!
Agreed that the spec is unambiguous, but the behavior is a bit buried.

Perhaps a note to the effect that constructors behave like operations for
arguments could be added?

For example:
[[
Note:
Constructors and operations use the same overload resolution algorithm for
identification of which overloaded operation, constructor, etc. is being
called, and for conversion of the ECMAScript argument values to their
corresponding IDL values.
]]

...right after:
[[
See section 4.5.1.1 below for details on how a constructor for an interface is
to be implemented, and section 4.5.3 for how a constructor for a dictionary is
to be implemented.
]]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 26 March 2014 05:08:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC