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

[Bug 11451] Add a string enum type

From: <bugzilla@jessica.w3.org>
Date: Fri, 09 Dec 2011 00:12:02 +0000
To: public-script-coord@w3.org
Message-Id: <E1RYo4I-0000SL-OM@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=11451

--- Comment #12 from Cameron McCormack <cam@mcc.id.au> 2011-12-09 00:12:01 UTC ---
What should happen when passing an invalid string enum value to an operation?

  enum A { "x", "y" };
  interface B {
    void f(A a);
  };

  getB().f("z");

Doing nothing in f seems wrong.  Should we allow the invalid value to be passed
through, and require specs to define their behaviour for operations that take
invalid string enum values?

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 9 December 2011 00:12:08 UTC

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