Wrong enum comparisons

LemonBoy via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 14 09:52:10 PST 2017


On Monday, 28 May 2012 at 21:01:43 UTC, bearophile wrote:
> Andrei Alexandrescu:
>
>> I do agree that it's wrong to _conflate_ the enumerated value 
>> with it ordinal,
>
>> I agree it is possible to fix enum.
>
> Thank you for your answers Andrei. I have filed an enhancement 
> request:
> http://d.puremagic.com/issues/show_bug.cgi?id=8157
>
> Issue 8157 is a subset of issue 3999, so they don't interfere 
> with each other in Bugzilla.
>
> I'd like to receive a comment from Walter :-)
>
> Bye,
> bearophile

Alright, ~5 years have passed and no response has been heard so I 
think it's right about time to get the ball rolling (again).
DMD's PR #6444 implements what's proposed in bugzilla 6227 and 
that's IMO a solid first step in the right direction.
Feel free to continue the discussion here or on the GH issue.


More information about the Digitalmars-d mailing list