Home Segments Index Top Previous Next

204: Mainline

The initialization and reassignment portions of the for statement in Segment 203 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-side operand.