Is the world coming to an end?

KennyTM~ kennytm at gmail.com
Sat Apr 2 17:34:22 PDT 2011


On Apr 3, 11 07:52, Walter Bright wrote:
> On 4/2/2011 3:58 PM, KennyTM~ wrote:
>> 1. this message is specific to the dmd front-end. Other lexers might
>> not show this message
>
> Appropriate and informative error messages are properly
> quality-of-implementation issues. As the dmd source shows, doing this
> message is trivial.
>

DMD recognizes the octal literal then rejects it later. Ideally the 
lexer should not accept 0\d{2,} at all.

>> 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)).
>
> This change will not migrate to D1.

Yes. I mean Tango for D2 (if it will be finished?)

Anyway the above aren't really big problems. I don't expect newbies know 
octal literals :).


More information about the Digitalmars-d mailing list