Enums - probably an old subject

Craig Dillabaugh cdillaba at cg.scs.carleton.ca
Thu Nov 21 00:37:31 PST 2013


On Thursday, 21 November 2013 at 08:05:03 UTC, Michal Minich
wrote:
> On Thursday, 21 November 2013 at 07:42:48 UTC, Craig Dillabaugh 
> wrote:
>> I should also mention, this post likely better belongs in:
>>
>> digitalmars.D.learn
>
> I don't entirely think so. I think the OP is arguing that D 
> should be able to identify symbol as specific enum's field when 
> used:
>   - in place of function argument when the fn parameters is of 
> enum type
>   - and when comparing for equality with variable of enum type.

Yes, perhaps that was his intention (no pun intended). First few
times I used enums in D I was caught because I expected the
behavior he is suggesting here would work.



More information about the Digitalmars-d mailing list