tcl - How to issue commands from inside a loop? -
this basic question.
think of tcl command line generator. purpose generate strings tool’s command line interpreter. example, tcl commands:
set alpha “run” $alpha $alpha $alpha
cause “run” command sent tool 3 times – makes sense. but:
set alpha “run” {set 0} {$i<3} {incr i} $alpha
does not. question is: how send commands tool inside loop?
your problem "funny quotes" in line
set alpha “run”
to tcl, quotes aren't syntactic markers, text. try
set alpha "run"
or, better,
set alpha run
Comments
Post a Comment