Substitutions take place from left to right, and each substitution is evaluated completely before attempting to evaluate the next. Thus, a sequence like:
will always set the variable y to the value, 012.
set y [set x 0][incr x][incr x]
will always set the variable y to the value, 012.
No comments:
Post a Comment