Implicit enum conversions are a stupid PITA

Nick Sabalausky a at a.a
Thu Mar 25 23:18:39 PDT 2010


"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
news:hohhnn$252d$1 at digitalmars.com...
> Don wrote:
>> I've done it with powers of 10:
>> 001,
>> 010,
>> 100
>>
>> and then wondered why my code was wrong. It's the only time in my life 
>> I've ever used an octal literal.
>
> I see that and it screams BINARY to me, not decimal!
>

0b001,
0b010,
0b100

To me, *that* screams binary. ;)





More information about the Digitalmars-d mailing list