[Issue 9216] New: Local import of std.array does not make popFront() visible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 27 01:09:53 PST 2012


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 at puremagic.com
        ReportedBy: puneet at coverify.org


--- Comment #0 from Puneet Goel <puneet at 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: -------


More information about the Digitalmars-d-bugs mailing list