[Issue 3935] opBinary is instantiated with "="

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 11 18:06:05 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3935


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2010-03-11 18:06:04 PST ---
When you submit a bug it's better to show a minimal but complete program that
shows your problem. This shows the situation (I think it's cute, an
undocumented operator overload):


struct Foo {
    void opBinary(string op)(Foo other) {
        pragma(msg, "op: " ~ op);
    }
}
void main() {
    Foo f;
    f = f;
}

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