[Issue 12383] New: dlang.org operator overloading text with DDoc macro.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 16 09:42:59 PDT 2014


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 at puremagic.com
        ReportedBy: philippe.sigaud at gmail.com


--- Comment #0 from Philippe Sigaud <philippe.sigaud at 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: -------


More information about the Digitalmars-d-bugs mailing list