Bug 21173 – dmd.traits.d should be O(1)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-18T11:29:13Z
Last change time
2024-12-13T19:11:07Z
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: dmd#19774 →

Comments

Comment #0 by b2.temp — 2020-08-18T11:29:13Z
The current implementation is a pile of test on identifiers. That should rather use a switch or a table of methods.
Comment #1 by robert.schadek — 2024-12-13T19:11:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19774 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB