Implicit enum conversions are a stupid PITA

Lutger lutger.blijdestijn at gmail.com
Sun Mar 28 02:33:21 PDT 2010


bearophile wrote:

> Lutger:
>> alias Flags!q{ do_nothing,
>>                walk_dog,
>>                cook_breakfast,
>>                deliver_newspaper,
>>                visit_miss_kerbopple,
>>                wash_covers } Todo;
> 
> That's better.
> But you have missed the optional type :-)
> 
> Bye,
> bearophile

Thanks. I omitted the type because I was lazy. :) Assuming uint it is 
possible to just use std.intrinsic for bit twiddling in the range, since I'm 
not so good with that. I can brush it up and post the code later if you want, 
but it's not so pretty. 



More information about the Digitalmars-d mailing list