digitalmars.D.bugs - [Issue 6991] New: Symbol not found when using function-local imports
- d-bugmail puremagic.com (25/25) Nov 22 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6991
- d-bugmail puremagic.com (10/10) Nov 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6991
- d-bugmail puremagic.com (11/11) Nov 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6991
http://d.puremagic.com/issues/show_bug.cgi?id=6991 Summary: Symbol not found when using function-local imports Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-11-22 19:32:22 PST --- import std.stdio; // import std.cpuid : threadsPerCPU; // ok void main() { import std.cpuid : threadsPerCPU; writeln(threadsPerCPU); // NG, undefined identifier threadsPerCPU } It doesn't complain about the import, but only when used in a function call, and only if it's imported within the function. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 22 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6991 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #1 from bearophile_hugs eml.cc 2011-11-23 00:30:52 PST --- See bug 6272 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6991 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from bearophile_hugs eml.cc 2011-11-23 09:35:47 PST --- *** 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: -------
Nov 23 2011