M
Michael Jørgensen
Hi there,
Is there any difference between
bool success = SomeFunctionReturningFalse();
success &= SomeOtherFunction();
and
bool success = SomeFunctionReturningFalse();
success = success && SomeOtherFunction().
????
In the latter case I expect that SomeOtherFunction() will not be called,
because of short circuit evaluation, but what about the first case?
-Michael.
Is there any difference between
bool success = SomeFunctionReturningFalse();
success &= SomeOtherFunction();
and
bool success = SomeFunctionReturningFalse();
success = success && SomeOtherFunction().
????
In the latter case I expect that SomeOtherFunction() will not be called,
because of short circuit evaluation, but what about the first case?
-Michael.