http://d.puremagic.com/issues/show_bug.cgi?id=314



--- Comment #42 from Marco Leise <[email protected]> 2013-02-24 17:22:23 PST 
---
(In reply to comment #21)
> In my understanding, "import std.stdio : writefln;" only imports the name
> "writefln", not "std" and "writefln". If the user wants "std", he has to write
> "static import std.stdio;". I would assume your example is invalid and is
> expected to fail.
> 
> Why would the user do "import std.stdio : writefln;" if he doesn't use 
> writefln
> directly? Is "std.stdio.writefln" the only name he's supposed to be able to 
> use
> here? If yes, what the hell is the use of that?

The use case is this:

import std.stdio : File;
import std.stream : File;
...
new std.stream.File(...);

There is no reason for that to fail.

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

Reply via email to