More octal questions

Timon Gehr timon.gehr at gmx.ch
Tue Feb 14 13:34:32 PST 2012


On 02/14/2012 10:24 PM, H. S. Teoh wrote:
> OK, so I know that octals are deprecated, and the compiler will refuse
> to compile code with octals unless the -deprecated flag is used.
>
> But I find that std.datetime has literals of the form 000, 01, 02, 03,
> and so on. Are these considered OK? Should my lexer accept them?
>
>
> T
>

Yes.

On 02/11/2012 05:37 PM, Timon Gehr wrote:
> Octal literals whose value is larger than 7 must be rejected. Octal literals with values up to 7 must be accepted.



More information about the Digitalmars-d-learn mailing list