D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 456 - DMD accepts keywords in module names if no ModuleDeclaration is used
Summary: DMD accepts keywords in module names if no ModuleDeclaration is used
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 00:41 UTC by Thomas Kühne
Modified: 2014-02-15 13:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006-10-25 00:41:53 UTC
sample:

dmd while.d
Comment 1 Frits van Bommel 2006-10-25 04:02:29 UTC
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 Walter Bright 2006-10-25 17:07:38 UTC
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.