February 15, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9516

           Summary: Selective imports are always public
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jmdavisProg@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-02-14 20:51:21 PST ---
Take this module

-----------
module q;

import w;

void main()
{
    find("hello", 'c');
}
-----------

and this module

-----------
module w;

import std.algorithm : find;
-----------

The code compiles just fine, even though q never imported find. Compilation should have failed. The fact that it succeeded implies that selective imports are always being treated as public. And explicitly marking the import as private has no effect.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 15, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9516


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-15 08:20:36 PST ---
*** This issue has been marked as a duplicate of issue 314 ***

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