[Issue 13491] DMD on Windows doesn't handle wildcards on the command line.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 5 01:12:28 PDT 2014


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Bernard Helyer from comment #3)
> You can specify multiple source files at a time,
> ergo expanding wild cards is The Right Thing (tm).
> And as Vladimir pointed
> out, every other compiler does, so it's expected behaviour.

1. the ordering of files presented to dmd matters - wildcards do not specify an
order

2. directories under development tend to accumulate detritus in the form of
other source files. With a lot of files in a directory it'll be difficult to
notice if one or more extra ones are there. It's hard enough keeping the junk
out of git directories

3. D doesn't allow:
    import std.*;
for similar reasons.

tl;dr wildcards to dmd are sloppy, error-prone, and have unpredictable
behavior.

--


More information about the Digitalmars-d-bugs mailing list