Quote:
|
Originally Posted by ApothiX
Because the compiler would interpret those as bitwise operators. if(function()) is doing an '== true' check, if(function() == true) is NOT doing two checks for true. If you honestly think I am wrong in this, then you would think that if(function() == false) is doing a check for both true and false.
Read my damn text before you reply. I am done with this thread.
|
if (function() == false)
CASE 1:
function() returns true
true == false
true is not equivalent to false, therefore the statement is false.
CASE 2:
function() returns false
false == false
false is equivalent to false, therefore the statement is true.
Tell me, what's the contrapositive to p->q?
Seriously, take a course in logic or something.