break condition to OR and AND operators in an IF Statement
问题 The If statement and any other boolean comparison is smart enought to stop at first FALSE value when evaluating A and B and C and D and at first TRUE value when evaluating A or B or C or D . What is the name of this behavior? Is this a compiler optimization? If so, there is a way to disable it with some compiler directive? 回答1: This is called 'boolean short-circuit evaluation', a form of 'lazy evaluation'. You can tell the compiler either to use or not to use this feature using compiler