Re: [WebIDL] enum

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