www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8122] New: opDispatch doesn't forward opCall

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



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