Number literals (Was: Re: Case Range Statement ..)

Walter Bright newshound1 at digitalmars.com
Wed Jul 8 03:09:38 PDT 2009


Don wrote:
> Make a leading 0 illegal,

I'm not sure what benefit that accomplishes.

> and either:
> (1) change the octal syntax into 0c77733,
> or(better) (2) provide an octal conversion function in the standard 
> library.
> 
> Because of CTFE, so we can actually do (2) very nicely. I don't see any 
> need for it to be a language feature when a library can do a better job.



More information about the Digitalmars-d mailing list