Is the world coming to an end?

Daniel Gibson metalcaedes at gmail.com
Sat Apr 2 16:01:16 PDT 2011


Am 03.04.2011 00:58, schrieb KennyTM~:
> On Apr 3, 11 06:49, KennyTM~ wrote:
>> On Apr 3, 11 06:27, ulrik.mikaelsson at 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)).

If Tango is ever ported to D2 it should be possible to use Phobos and Tango at
the same time (thanks to druntime), so that shouldn't be an issue, right?


More information about the Digitalmars-d mailing list