Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 17, 2006 [Issue 290] New: "U" shaped import name conflicts when using Fully Qualified names | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=290 Summary: "U" shaped import name conflicts when using Fully Qualified names Product: D Version: 0.164 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: brunodomedeiros+bugz@gmail.com BugsThisDependsOn: 209 In a "U" shaped structure of imports, name conflicts occur on the bottom module (main) when accessing top module entities (pack.tier2*) with a fully qualified name, as both tier1 modules think they have a different pack. Code: ---- main.d ---- import tier1_A; import tier1_B; alias pack DUMMY; auto x1 = &pack.tier2_A.foonumA; auto x2 = &pack.tier2_B.foonumB; // any the above gets the error: // import tier1_A.pack conflicts with tier1_B.pack at tier1_B.d(3) ---- tier1_A.d ---- module tier1_A; public import pack.tier2_A; ---- tier1_B.d ---- module tier1_B; public import pack.tier2_B; ---- pack/tier2_A.d ---- module pack.tier2_A; int foonumA; ---- pack/tier2_B.d ---- module pack.tier2_B; int foonumB; -- |
August 17, 2006 [Issue 290] "U" shaped import name conflicts when using Fully Qualified names | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=290 ------- Comment #1 from brunodomedeiros+bugz@gmail.com 2006-08-16 19:38 ------- Created an attachment (id=22) --> (http://d.puremagic.com/issues/attachment.cgi?id=22&action=view) Zipped testcase -- |
August 17, 2006 Re: [Issue 290] New: "U" shaped import name conflicts when using Fully Qualified names | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | Note to self: pay attention when posting bugs with multiple bugzilla windows opened, it messes the dependency information... :P
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
|
October 16, 2006 [Issue 290] "U" shaped import name conflicts when using Fully Qualified names | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=290 ------- Comment #2 from brunodomedeiros+bugz@gmail.com 2006-10-16 16:58 ------- Fixed DMD 0.169 . Likely a duplicate of #386 -- |
October 16, 2006 [Issue 290] "U" shaped import name conflicts when using Fully Qualified names | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=290 brunodomedeiros+bugz@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from brunodomedeiros+bugz@gmail.com 2006-10-16 17:00 ------- forgot to change to FIXED -- |
Copyright © 1999-2021 by the D Language Foundation