digitalmars.D.bugs - [Issue 9516] New: Selective imports are always public
- d-bugmail puremagic.com (34/34) Feb 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9516
- d-bugmail puremagic.com (12/12) Feb 15 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9516
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 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: -------
Feb 14 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 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: -------
Feb 15 2013