Home Segments Index Top Previous Next

321: Sidetrip

The initialization and reassignment portions of the for statement in Segment 320 both appear to consist of two separate expressions:

counter = n, result = 1 
--counter, result = result * 2 

However, both consist of just one expression, because the comma is viewed as just another operator—one on the lowest precedence level. The operands are evaluated left to right, and the value is the value of the right-hand operand.