On 7/24/12, H. S. Teoh <[email protected]> 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.
