[Issue 314] [module] Static, renamed, and selective imports are always public
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 12 07:28:03 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=314
--- Comment #23 from Leandro Lucarella <llucax at gmail.com> 2010-08-12 07:25:12 PDT ---
(In reply to comment #22)
> (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?
>
> It's invalid code. But you should never see TOKxxx in an error message. It
> indicates something is fouled up.
One more for bug 4329 =)
--
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