This is not a bug but the expected behaviour. $x is a non-
numeric string, and braced expressions $x is a atom in the
expression, and not interpolated into it. This is also the
difference between
set op +
expr {1 $op 3} (a)
expr 1 $op 3
op is not recognized in (a).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=75003
This is not a bug but the expected behaviour. $x is a non-
numeric string, and braced expressions $x is a atom in the
expression, and not interpolated into it. This is also the
difference between
set op +
expr {1 $op 3} (a)
expr 1 $op 3
op is not recognized in (a).
Logged In: YES
user_id=72656
I concur with aku.