www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12383] New: dlang.org operator overloading text with DDoc macro.


           Summary: dlang.org operator overloading text with DDoc macro.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: philippe.sigaud gmail.com

--- Comment #0 from Philippe Sigaud <philippe.sigaud gmail.com> 2014-03-16
17:42:57 CET ---
The binary op overloading on dlang.org has a problem:


The expression:

a op b
is rewritten as both:

a.opBinary!("$(METACODE op)")(b)
b.opBinaryRight!("$(METACODE op)")(a)

and the one with the ‘better’ match is selected. It is an error for both to
equally match.

The "$(METACODE op)" part should not appear as such.

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