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

[Bug 25630] New: "The following use of overloading however is inv..."

From: <bugzilla@jessica.w3.org>
Date: Fri, 09 May 2014 08:15:00 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25630-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25630

            Bug ID: 25630
           Summary: "The following use of overloading however is inv..."
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: nbarth+w3bugzilla@google.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

http://heycam.github.io/webidl/#idl-overloading

This is outdated:

[[
The following use of overloading however is invalid:

IDL
interface B {
  void f(DOMString x);
  void f(float x);
};
since DOMString and float are not distinguishable.
]]

...since DOMStrings and floats (numerics) are now distinguishable.

This can be corrected by replacing "DOMString" with "long":

[[
The following use of overloading however is invalid:

IDL
interface B {
  void f(long x);
  void f(float x);
};
since long and float are not distinguishable.
]]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 9 May 2014 08:15:02 UTC

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