Using tcl, i want to pass variable parameters to function. i tried this code
proc launch_proc { msg proc_name {params {}} } {
puts "params launch_proc is $params \n"
}
proc test { param } {
puts "param test is $param \n"
launch_proc "1.5.2 test param" test_standard {{*}$param param1 param2 param3"
}
}
test value
--> params launch_proc is {*}$param param1 param2 param3" $param is not evaluated (i use tcl 8.5)
launch_proc, but you are passing more than (incorrect ?) that. Also, issues with the quoting as well.{*}$param param1 param2 param3tolaunch_proc. It does not look like what you want. Did you meanlaunch_proc "1.5.2 test param" test_standard "{*}$param param1 param2 param3"?launch_proc "1.5.2 test param" test_standard [list {*}$param param1 param2 param3]$valuecontain any value when you invoke thetestproc?