On Apr 3, 11 06:49, KennyTM~ wrote:
On Apr 3, 11 06:27, ulrik.mikaels...@gmail.com wrote:
A D-newbie would probably be able to guess 0o for octal, but hardly
octal!. octal! breaks the rule of least surprise.

Except a big error

octal literals 011 are deprecated, use std.conv.octal!11 instead

will be emitted when the said newbie tries to compile with 011 :). See
commit
https://github.com/D-Programming-Language/dmd/commit/87afe713711060ec73942d1a94d3e28024781932


But of course

 1. this message is specific to the dmd front-end. Other lexers might
    not show this message
 2. this assumes std.conv.octal exists, though it may not be the case
    (e.g. using Tango without Phobos (well Tango devs could add just
    std.conv.octal)).

Reply via email to