[Issue 314] [module] Static, renamed, and selective imports are always public

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 12 06:14:39 PDT 2010


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



--- Comment #21 from nfxjfg at gmail.com 2010-08-12 06:11:44 PDT ---
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?

-- 
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