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

Re: [WebIDL] enum

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 30 May 2011 10:36:00 +1200
To: Marcin Hanclik <Marcin.Hanclik@access-company.com>
Cc: public-script-coord@w3.org
Message-ID: <20110529223600.GB21934@wok.mcc.id.au>
Marcin Hanclik:
> To ease the process of comprehension of the interfaces, we could have
> e.g.
>   [EnumFor=networkState]
>   const unsigned short NETWORK_EMPTY = 0;
>   [EnumFor=networkState]
>   const unsigned short NETWORK_IDLE = 1;
…
> Alternatively WebIDL could have the "enum" keyword with some specific
> syntax. The realization of this functionality does not, however,
> matter as much as the need to have it specified.

As this is not something we need right now, I am deferring this to a
future version of the spec.  I filed
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12810 for that.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Sunday, 29 May 2011 22:36:30 UTC

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