[Issue 8122] New: opDispatch doesn't forward opCall

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 19 20:06:24 PDT 2012


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 at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list