[Issue 2659] Remove the comma operator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 10 14:38:12 PDT 2014


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


bearophile_hugs at eml.cc changed:

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


--- Comment #7 from bearophile_hugs at eml.cc 2014-03-10 14:38:03 PDT ---
The reduction of a real bug:

bool foo(int x, int* y=null) { return true; }
void main() {
    int x;
    int* p;
    if (foo(x), p) {
        assert(0, "true branch");
    } else {
        assert(0, "false branch");
    }
}


Hopefully the comma operator will be deprecated.

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