digitalmars.D.bugs - [Issue 8122] New: opDispatch doesn't forward opCall
- d-bugmail puremagic.com (28/28) May 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8122
http://d.puremagic.com/issues/show_bug.cgi?id=8122 Summary: opDispatch doesn't forward opCall Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com --- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2012-05-19 20:07:59 PDT --- This issue is separated from issue 8133. (From http://d.puremagic.com/issues/show_bug.cgi?id=8113#c3) struct C { void opDispatch(string op, T...)(T) { } } void main() { C f; f(); } (From http://d.puremagic.com/issues/show_bug.cgi?id=8113#c6) struct S { void opDispatch(string op, A...)(A args){} } void main() { S s; +s; // not converted to opDispatch!("opUnary", ...) s + s; // not converted to opDispatch!("opBinary", ...) s(); // not converted to opDispatch!("opCall", ...) } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2012