ENVY/QA User Guide : Code Critic : Method Reviews : Defeats Compiler Optimization
Defeats Compiler Optimization
Warns if an optimized method is misused.
D:\Documents\VAS Documentation Word\images\tips.gif
This warning occurs with code of the form:
ifTrue: aVariableHoldingABlock.
The system recognizes special selectors (for example, ifTrue:[]) and their blocks, and optimizes them. The above form defeats these compiler optimizations. Review the code for an alternative approach; for example, use:
ifTrue:[aVariableHoldingABlock value].
 
Last modified date: 05/19/2020