[Issue 8564] Ambiguous renamed import is allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 20 03:40:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8564
--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-08-20 03:40:18 PDT ---
Forgot to mention, "foo1.bar();" actually calls foo2.bar()
which I consider the biggest problem in this situation.
It is unlikely, that import hijack could be written in purpose,
but:
1) such situation can occur unintentionally, when programmer
renamed/moved file and forgot to update import line
2) foo1.bar() is actually foo2.bar() and this is very bad because
it contradicts to D approach "issue error if ambiguous function call is found".
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list