[Issue 12758] allow file names with hyphens
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun May 18 01:45:44 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12758
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to Tom Browder from comment #0)
> D source file names with hyphens should be allowed, e.g., "test-bu.d".
Note that module names must be valid D identifiers. So if you have "test-bu.d"
it would need to have a separate module declaration (e.g. "module test_bu;").
This this also means that the compiler either has to try and use heuristics to
find the file on disk, or you have to explicitly pass it to the compiler.
It's implementable, but I'm not sure if Walter would ok this.
--
More information about the Digitalmars-d-bugs
mailing list