Thread overview | |||||
---|---|---|---|---|---|
|
July 13, 2011 [Issue 6307] New: imported packages are visible everywhere | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6307 Summary: imported packages are visible everywhere Product: D Version: D1 & D2 Platform: Other OS/Version: Linux Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: kamm-removethis@incasoftware.de --- Comment #0 from Christian Kamm <kamm-removethis@incasoftware.de> 2011-07-13 11:27:34 PDT --- import1.d: import std.stdint; // includes nothing else in std.* void main() { std.stdio.writeln("hello"); } import2.d: import std.stdio; dmd -c import1.d import2.d compiles without error. It should error on std.stdio in import1.d. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 13, 2011 [Issue 6307] imported packages are visible everywhere | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | http://d.puremagic.com/issues/show_bug.cgi?id=6307 --- Comment #1 from Christian Kamm <kamm-removethis@incasoftware.de> 2011-07-13 11:33:47 PDT --- Another test case using only a single file: import std.stdint; void bar() { import std.stdio; } void main() { std.stdio.writeln("foo"); } // expected error -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 17, 2012 [Issue 6307] imported packages are visible everywhere | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christian Kamm | http://d.puremagic.com/issues/show_bug.cgi?id=6307 dawg@dawgfoto.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dawg@dawgfoto.de Resolution| |DUPLICATE --- Comment #2 from dawg@dawgfoto.de 2012-02-16 19:28:48 PST --- *** This issue has been marked as a duplicate of issue 313 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation