www.digitalmars.com         C & C++   DMDScript  

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

https://d.puremagic.com/issues/show_bug.cgi?id=12383

           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:

http://dlang.org/operatoroverloading.html#Binary

~~~~~~
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