Octal literals: who uses this?

Stewart Gordon smjg_1998 at yahoo.com
Sat Mar 14 10:21:27 PDT 2009


Christopher Wright wrote:
<snip>
> Octal literals aren't necessary with hex literals, but they might be 
> convenient. However, making them variable width seems like it opens up 
> the possibility for obscure bugs. I would not recommend that anyone use 
> octal literals, and I don't think they're an advantage to the language. 
> Even if they were, their current representation is not.
> 
> Can we just remove this?

One octal literal is very commonly used: \0.

At least save this one.  Just don't go allowing things like "\012" to 
mean ['\0', '1', '2'].

Stewart.



More information about the Digitalmars-d mailing list