POV-Ray : Newsgroups : povray.off-topic : Lots of statistics : Re: C# WTF list Server Time
29 Jul 2024 20:22:41 EDT (-0400)
  Re: C# WTF list  
From: clipka
Date: 15 Aug 2012 07:30:43
Message: <502b8863$1@news.povray.org>
Am 15.08.2012 12:48, schrieb Invisible:
> On 14/08/2012 03:42 PM, Invisible wrote:
>> As with any language, my WTF list:
>
> Enums. Urgh. An enumeration is supposed to be a type that can only take
> on the specified set of values. Except that in C#, an enumeration can
> take on /any/ integer value. It's just that some of these values also
> have friendly names. *sigh*

Erm... did you actually /try/ this??

Trying to assing an int to an enum variable, I get a "Cannot implicitly 
convert [...]" error for any integer value other than 0. (Don't ask me 
why they did allow it for 0 though.)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.