octal literals, was Re: Implicit enum conversions are a stupid PITA

Rainer Deyke rainerd at eldwood.com
Thu Mar 25 21:55:44 PDT 2010


On 3/25/2010 17:52, Walter Bright wrote:
> One thing is clear, though. 0177 is never going to be a decimal number
> in D, because it will silently and disastrously break code translated
> from C. The only choice is to support 0177 as octal or make it a syntax
> error. I'd rather support them.

I don't mind octal literals, but '0177' is a horrible syntax.  *Every*
*single* *time* that I used that syntax in C or C++, I really meant to
use a decimal.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list