Thread overview | |||||
---|---|---|---|---|---|
|
August 10, 2011 [Issue 6465] New: Selective imports don't work from inside a function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6465 Summary: Selective imports don't work from inside a function Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2011-08-10 11:32:16 PDT --- ///////////////////////////////////////////////// module a; void main() { import b : foo; foo(); } ///////////////////////////////////////////////// module b; void foo() { import std.stdio; writeln("FOO"); } //////////////////////////////////////////////// $ dmd a.d b.d a.d(6): Error: undefined identifier foo -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 10, 2011 [Issue 6465] Selective imports don't work from inside a function | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=6465 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2011-08-10 11:49:10 PDT --- Like bug 6272 ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 11, 2011 [Issue 6465] Selective imports don't work from inside a function | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=6465 David Simcha <dsimcha@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from David Simcha <dsimcha@yahoo.com> 2011-08-10 20:44:07 PDT --- (In reply to comment #1) > Like bug 6272 ? Yes, thanks. Closing as a duplicate. *** This issue has been marked as a duplicate of issue 6272 *** -- 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