Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 09, 2011 [Issue 6272] New: Named import in functions problem | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6272 Summary: Named import in functions problem 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: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-07-08 17:41:27 PDT --- This compiles correctly (DMD 2.054 beta): import std.string: join; void main() { string[] a = ["foo", "bar"]; string s = join(a); } This too: void main() { import std.string; string[] a = ["foo", "bar"]; string s = join(a); } But this: void main() { import std.string: join; string[] a = ["foo", "bar"]; string s = join(a); } gives: temp.d(4): Error: undefined identifier join, did you mean function main? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 11, 2011 [Issue 6272] Named import in functions problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6272 David Simcha <dsimcha@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha@yahoo.com --- Comment #1 from David Simcha <dsimcha@yahoo.com> 2011-08-10 20:44:07 PDT --- *** Issue 6465 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 23, 2011 [Issue 6272] Named import in functions problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6272 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #2 from bearophile_hugs@eml.cc 2011-11-23 09:35:47 PST --- *** Issue 6991 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 23, 2011 [Issue 6272] Named import in functions problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6272 Christian Kamm <kamm-removethis@incasoftware.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kamm-removethis@incasoftwar | |e.de --- Comment #3 from Christian Kamm <kamm-removethis@incasoftware.de> 2011-11-23 09:57:28 PST --- https://github.com/D-Programming-Language/dmd/pull/190 fixes this as well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 26, 2011 [Issue 6272] Named import in functions problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6272 --- Comment #4 from bearophile_hugs@eml.cc 2011-11-25 16:27:19 PST --- This seems a related problem: void main() { import std.algorithm; auto data = new int[10]; sort(data); // OK data.sort(); // Error: undefined identifier module temp.sort } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2012 [Issue 6272] Named import in functions problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6272 dawg@dawgfoto.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dawg@dawgfoto.de Resolution| |FIXED --- Comment #5 from dawg@dawgfoto.de 2012-01-20 09:45:21 PST --- https://github.com/D-Programming-Language/dmd/commit/ff9fa25f3f7f3091787f7459e1950add6cff50b2 -- 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