[Issue 3251] DecimalFloat literal cannot begin with "08" or "09"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 10 12:33:57 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=3251

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Currently, when dmd sees a 0 it starts parsing an octal. If it finds any digit
> 7 it errors. However, if it finds a point, it immediately switches to parsing
a floating point literal, thus accepting from this point digits larger than 7:

07341 => octal
07238 => error
024.8 => foating point literal

I think this is fine.

--


More information about the Digitalmars-d-bugs mailing list