Constant optimization mechanism

To a variable assignment, if the right side of the equal sign is the constant expression and not a variable, then the result of the expression will be evaluated at compile phase,

Then determine whether the result of the expression to the left of the type represented within range, if so, then the assignment is successful, if not, then the assignment fails.

Note: Constant optimization mechanism if the expression on the right have equal numbers · variables, then there would be compiled during

Guess you like

Origin www.cnblogs.com/libinhong/p/10988471.html