[Issue 7496] New: Selective imports make module accessible with another import from the same package
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 13 10:51:50 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7496
Summary: Selective imports make module accessible with another
import from the same package
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-02-13 10:51:49 PST ---
import std.algorithm;
import std.stdio : writeln;
void bar()
{
std.stdio.writeln();
}
----
Without importing std.algorithm this will fail.
This is because std.algorithm make the std package available
which in turn 'knows' stdio because of the selective import.
There are two solutions.
Either disallowing std.stdio or making std.stdio available
for selective imports too.
--
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