On 7/24/12, H. S. Teoh <hst...@quickfur.ath.cx> wrote:
> The comma operator must go.

The comma operator needs to die a fast but painful death. I've had
this sort of bug recently:

int getInt(string op)
{
    if (op, "a")
        return 1;
    else
    if (op == "b")
        return 2;
    else
        return 3;
}

Guess which number it always returns regardless of input.

Reply via email to