digitalmars.D.bugs - [Issue 9216] New: Local import of std.array does not make popFront() visible
- d-bugmail puremagic.com (28/28) Dec 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9216
- d-bugmail puremagic.com (13/13) Dec 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9216
- d-bugmail puremagic.com (12/12) Dec 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9216
http://d.puremagic.com/issues/show_bug.cgi?id=9216 Summary: Local import of std.array does not make popFront() visible Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: puneet coverify.org --- Comment #0 from Puneet Goel <puneet coverify.org> 2012-12-27 01:09:52 PST --- test.d(6): Error: undefined identifier 'popFront'When I import std.array at module level (line 1), popFront is available. But if I import std.array inside the main function, it gives me an error saying: test.d(6): Error: undefined identifier 'popFront' // import std.array; // compiles fine when placed here // 1 void main() // 2 { // 3 import std.array; // does not make popFront visible // 4 int foo[] = new int[5]; // 5 foo.popFront(); // 6 } // 7 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9216 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #1 from bearophile_hugs eml.cc 2012-12-27 01:12:44 PST --- This is known limitation of UCFS. If you import array inside a function, then you have to use its function with the normal function syntax: popFront(foo); I'd like this limitation to be solved, but I don't know of plans to solve it. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9216 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |DUPLICATE --- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-12-27 09:03:02 PST --- *** This issue has been marked as a duplicate of issue 6185 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 27 2012