You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
144 B

#!tclsh
set vals {1 2 3}
foreach val $vals {
puts $val
set tmp [expr $val * 3]
set val_${val} $tmp
puts [set val_${val}]
}
set tmp 1 2 3