[Issue 12758] Compiler should infer acceptable module name when file name includes hyphens

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 25 03:26:28 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=12758

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net
         Resolution|---                         |WONTFIX

--- Comment #8 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to yebblies from comment #6)
> I don't think the compiler should be guessing what you wanted the module to
> be called.

Indeed. It is by the same reasoning that the compiler will not do
case-insensitive lookup (on case-sensitive filesystems). Not only is this less
efficient (enumerating a directory can be much more inefficient than accessing
a file by its file name), but it creates problems such as multiple file names
mapping to the same module name (what if you have a-b.d and a_b.d in the same
directory?).

--


More information about the Digitalmars-d-bugs mailing list