Thread overview
[Issue 22940] Underscore disallowed after decimal separator in floating point literals
Dec 17, 2022
Iain Buclaw
Jun 21, 2023
Dlang Bot
Jun 26, 2023
Dlang Bot
March 26, 2022
https://issues.dlang.org/show_bug.cgi?id=22940

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Hardware|x86_64                      |All
            Summary|defect: Error: no property  |Underscore disallowed after
                   |`_0L` for type `int`        |decimal separator in
                   |                            |floating point literals
                 OS|Linux                       |All

--
March 26, 2022
https://issues.dlang.org/show_bug.cgi?id=22940

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from moonlightsentinel@disroot.org ---
The paragraph is misleading but that behavior matches the grammar in the spec, hence marking it as an enhancement.

--
March 26, 2022
https://issues.dlang.org/show_bug.cgi?id=22940

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|dmd                         |dlang.org

--- Comment #2 from moonlightsentinel@disroot.org ---
Changing the component to the spec because this issue most likely isn't fixable on the compiler side. `_0` is a valid identifier and hence would introduce an ambiguity for `1._0L` (is it a double literal or UFCS call `_0(1)`?)

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22940

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
June 21, 2023
https://issues.dlang.org/show_bug.cgi?id=22940

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dlang.org pull request #3642 "Lex float" fixing this issue:

- Fix Issue 22940 - Underscore disallowed after decimal separator in floating point literals

https://github.com/dlang/dlang.org/pull/3642

--
June 26, 2023
https://issues.dlang.org/show_bug.cgi?id=22940

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3642 " [spec/lex] Improve floating point docs" was merged into master:

- b1de8c3a4b46a908badbb4cb9914e27ff41dd04c by Nick Treleaven:
  Fix Issue 22940 - Underscore disallowed after decimal separator in floating
point literals

https://github.com/dlang/dlang.org/pull/3642

--