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

           Summary: need this to access member when mixining in a function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: tob...@pankrath.net


--- Comment #0 from Tobias Pankrath <tob...@pankrath.net> 2012-06-02 13:04:37 
PDT ---
mixin template print(b...)
{
    void doprint() {
        foreach(mem; b)
            writeln(b);
    }
}

class A { int x,y; mixin print!(x, y); }

Now DMD says:  need this to access member

Maybe related to Issue 3159

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to