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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------