Bug 456 – DMD accepts keywords in module names if no ModuleDeclaration is used
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-25T00:41:00Z
Last change time
2014-02-15T13:21:03Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0 by thomas-dloop — 2006-10-25T00:41:53Z
sample:
dmd while.d
Comment #1 by fvbommel — 2006-10-25T04:02:29Z
Note this is used in dmd/src/phobos/internal (cast.d, invariant.d, switch.d) to implement certain compiler support functions.
Presumably these are used by hardcoding the mangled names into the compiler since no D module can import them.
So if this is changed, those modules would have to be renamed and those names would have to be adjusted.
Comment #2 by bugzilla — 2006-10-25T17:07:38Z
I think that 'fixing' this is probably more trouble than its worth. While such modules do work for internal modules that have no D interface, they won't work anyway for regular D modules, and the user will find that out pretty quick.