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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 18 05:16:59 PDT 2014


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2014-03-18 05:16:58 PDT ---
(In reply to comment #0)
> ////////// test.d /////////
> import std.stream : Stream;
> 
> void main()
> {
>     std.stream.File f;
> }
> ///////////////////////////
> 
> I don't see any purpose for this breakage.

Here you have asked to import just the name "Stream", so the "std.stream" name
is missing. This is how things should be in a serious implementation of a
module system.

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