Thread overview
[Issue 8188] New: need this to access member when mixining in a function
Jun 02, 2012
Tobias Pankrath
Jun 06, 2012
Kenji Hara
Jun 11, 2012
Walter Bright
June 02, 2012
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: nobody@puremagic.com
        ReportedBy: tobias@pankrath.net


--- Comment #0 from Tobias Pankrath <tobias@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: -------
June 06, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8188


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-06-06 05:40:54 PDT ---
https://github.com/D-Programming-Language/dmd/pull/984

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8188



--- Comment #2 from github-bugzilla@puremagic.com 2012-06-11 14:59:36 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4038d7de2c4004ee504afe6a0f909b6df42c093c fix Issue 8188 - need this to access member when mixining in a function

https://github.com/D-Programming-Language/dmd/commit/a2106281dee2dfee6f3d6a4131317d149ed78d74 Merge pull request #984 from 9rnsr/fix8188

Issue 8188 - need this to access member when mixining in a function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8188


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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