The following lines of code:-
set x "a b c"
foreach j $x {
puts $j
puts $x
}
produce the following result:
a
a b c
b
a b c
c
a b c
I would expect the following lines of code to
produce the same result.
proc srtlenlist {args} {
foreach j $args {
puts $j
puts $args
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.