[Issue 9836] New: std.array.popFront does not work with alias this.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 30 06:51:41 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9836

           Summary: std.array.popFront does not work with alias this.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: tobias at pankrath.net


--- Comment #0 from Tobias Pankrath <tobias at pankrath.net> 2013-03-30 06:51:40 PDT ---
---
struct Wrapper { 
    int[] data;
    alias data this;
};

void main() {
    Wrapper w = Wrapper([1,2,3,4]);
    std.array.popFront(w); // compile time error: no working overload for
popFront.
---

std.array.popFront should work with subtypes of T[] created via alias this.

See also: #9835

-- 
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