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

[Bug 25425] New: enum should be able to inherit from another enum

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Apr 2014 07:02:48 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25425-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25425

            Bug ID: 25425
           Summary: enum should be able to inherit from another enum
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: mounir@lamouri.fr
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

It would be pretty neat if we could declare:

enum Foo {
  "foo",
}

enum Bar : Foo {
  "bar",
}

I have this need for the Screen Orientation API and I sadly have to declare two
different overlapping enums.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 23 April 2014 07:02:57 UTC

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