[Issue 8188] New: need this to access member when mixining in a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 2 13:02:42 PDT 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 at puremagic.com
ReportedBy: tobias at pankrath.net
--- Comment #0 from Tobias Pankrath <tobias at 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: -------
More information about the Digitalmars-d-bugs
mailing list