digitalmars.D.bugs - [Issue 8636] New: inconsistent behavior with implicit imports
- d-bugmail puremagic.com (33/33) Sep 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8636
- d-bugmail puremagic.com (24/24) Feb 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8636
- d-bugmail puremagic.com (24/24) Feb 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8636
http://d.puremagic.com/issues/show_bug.cgi?id=8636 Summary: inconsistent behavior with implicit imports Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: thelastmammoth gmail.com (bug filed in response to http://forum.dlang.org/thread/tscjzueypzuiptpkvxrb forum.dlang.org) This compiles but shouldn't: (needs explicit import) ---- import std.stdio; void main(){ writeln(std.conv.to!double(1)); } ---- This doesn't compile (and shouldn't): ---- import std.stdio; void main(){ std.stdio.writeln(std.conv.to!double(1)); } ---- =>Error: undefined identifier std -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 09 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8636 probably related: ---- fun.d void test(){ std.file.write("", []);} ---- dmd -c fun.d Error: undefined identifier std ---- fun.d import std.stdio; void test(){ std.file.write("", []);} ---- dmd -c fun.d Error: undefined identifier 'file' ---- fun.d import std.path; void test(){ std.file.write("", []);} ---- dmd -c fun.d compiles but shouldn't. What's also weird is the difference in error msg in case 1 and 2 above. -- 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=8636 probably related: ---- fun.d void test(){ std.file.write("", []);} ---- dmd -c fun.d Error: undefined identifier std ---- fun.d import std.stdio; void test(){ std.file.write("", []);} ---- dmd -c fun.d Error: undefined identifier 'file' ---- fun.d import std.path; void test(){ std.file.write("", []);} ---- dmd -c fun.d compiles but shouldn't. What's also weird is the difference in error msg in case 1 and 2 above. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 14 2013