[Mono-devel-list] Re: Fixes to XSLT
Atsushi Eno
atsushi at ximian.com
Tue Feb 8 10:21:36 EST 2005
Andrew Skiba wrote:
> 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
>
Oh, sure. thanks.
Atsushi Eno
More information about the Mono-devel-list
mailing list