Bug 20269 – Inconsistencies between `Token.toChar` and various error messages

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-05T15:45:05Z
Last change time
2024-12-13T19:05:46Z
Assigned to
No Owner
Creator
Elias Batek (0xEAB)
Moved to GitHub: dmd#19626 →

Comments

Comment #0 by desisma — 2019-10-05T15:45:05Z
`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.
Comment #1 by robert.schadek — 2024-12-13T19:05:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19626 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB