i'm having problem understanding the conditions explanation in k&b.
it says:
1. I don't know if its a typo, should it be || instead of |. Would it still return a boolean with |.?
2. Assuming it was a typo and it actually meant ||, k&b says:
if (x>3) is false, no point in looking at the rest of the expression. 'cos during runtime it is evaluated as
but my tests prove otherwise. my
test proves, left to right operation :
which means, it solves the first operation from left to right and the result of it, it operates with the next one.
can someone shed some light on this?
Thanks