Bug 11473 – rdmd --exclude=module1.package

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-07T13:57:18Z
Last change time
2017-12-07T06:08:27Z
Assigned to
No Owner
Creator
Luís Marques

Comments

Comment #0 by luis — 2013-11-07T13:57:18Z
rdmd --exclude does not understand the new package.d format, one must use: rdmd --exclude=module1.package ...instead of the more straightforward: rdmd --exclude=module1 rdmd should probaby become aware of package.d and permit the latter.
Comment #1 by dlang-bugzilla — 2017-06-25T16:25:56Z
Then there would be no way to distinguish excluding just the package.d module vs. the entire package. Exclusions work by looking at dmd's -v output (import lines, specifically). Since rdmd isn't really aware of how module names are resolved to file names, it probably can't reliably add the implicit .package suffix. Anyway, I don't think this is a problem on its own; we can just say that rdmd is interpreting module names as they appear in the module statement, and not the import statement. I'll close this for now, but if you have a use case for the proposed behaviour, feel free to reopen.
Comment #2 by timothee.cour2 — 2017-12-07T06:08:27Z