More octal questions

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Feb 15 09:49:38 PST 2012


On Wed, Feb 15, 2012 at 08:41:33AM -0800, Jonathan M Davis wrote:
[...]
> They're not left over at all, and they have nothing to do with octal.
> It's simply a matter of the natural thing for me to do when dealing
> with dates and times is to put the 0 in front of single digit numbers.
> You'll note that in the string representations, you _have_ to (per the
> ISO standard). So, I ended up doing it with the integer literals
> without thinking about it.
[...]

Yes, I guessed as much. Which brings up a question of what exactly octal
deprecation will entail. Seems like it would make sense to allow initial
0's in decimal literals once octal literals are phased out.

Also, string escape sequences appear to allow backslash octal as well;
are these being deprecated or are they here to stay?


T

-- 
Тише едешь, дальше будешь.


More information about the Digitalmars-d-learn mailing list