[Mono-devel-list] Re: Fixes to XSLT
Andrew Skiba
andrews at mainsoft.com
Tue Feb 8 10:15:01 EST 2005
Atsushi Eno wrote:
>> Hm, MonoDevelop then has to solve this problem somehow. What will
>> happen if a user defines her own enum where few members have an equal
>> value? Then you must go further and forbid such enum members in the
>> language like you forbid duplicated cases in switch statement.
>
> Is there such an enumeration type which is not buggy?
>
Citation from C# language standard
http://www.dina.dk/~sestoft/ecma/CSharpStandard-June2004Draft.pdf
21.3 Enum members
...
Multiple enum members can share the same associated value. [Example: The
example
enum
{
Red,
Green,
Blue,
Max = Blue
}
shows an enum that has two enum members—Blue and Max—that have the same
associated value.
example]
Regards,
Andrew Skiba
More information about the Mono-devel-list
mailing list