[Issue 12398] Selective imports no longer act as static imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 19 01:11:16 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12398



--- Comment #7 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-19 01:11:01 PDT ---
(In reply to comment #6)
> Oh, I see. Thanks.
> 
> Invalid? Or enhancement? I think selective imports ought to also act as static
> imports.

For that I suggest:

-----
static import std.stream : Stream;

void main()
{
    std.stream.File f;
}
-----

This is currently disallowed:

Error: static import stream cannot have an import bind list

So it wouldn't be a breaking change to add support.

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


More information about the Digitalmars-d-bugs mailing list