[Issue 20269] New: Inconsistencies between `Token.toChar` and various error messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 5 15:45:05 UTC 2019


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

          Issue ID: 20269
           Summary: Inconsistencies between `Token.toChar` and various
                    error messages
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: desisma at heidel.beer

`Token.toChar()` (defined in module `dmd.tokens`) differs from various other
strings found in the frontend (especially thinking of error messages).

For example: `Token.toChar(TOK.variable)` returns `"var"`, while in several
other places the frontend uses the term `variable` instead.

All this should soon or later get unified. I don't think there's a valid reason
to keep those inconsistencies.

--


More information about the Digitalmars-d-bugs mailing list