在for循环的同一行中有for循环主体的开括号,但我的代码仍然抱怨。
set parallel_count [expr $nb_combi/1024]
for {set j 0} {$j< $parallel_count} {incr j} {
set k [expr [expr $j+1] * 1024]
set l [expr $j * 1024]
set inFile "includefile.$j"
set inFileId [open $inFile "w"]
for {set i $l} {$i < $l} {incr i} {
puts $inFileId "set DEFINITION_file \"$settings.$i\""
}
close $inFileId
}