[Issue 11451] import statements don't work when compiling several files at once

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 6 06:25:12 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11451



--- Comment #4 from Dicebot <public at dicebot.lv> 2013-11-06 06:25:10 PST ---
D module system is tightly tied to the filesystem. When you change the root of
import path, module names change by design / spec. All existing D projects that
have packages define single "correct" import path for application to compile
and assign module names relative to it, it is intended way to go.

Now that you say it, it is quite interesting that separate compilation works
here. IMHO it shouldn't. For some reason compiling `dmd -c a.d` emits
unqualified `U` symbol into symbol file, this is why it does work. As far as I
understand, it really should emit a qualified one.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list