3 ms·
In Tcl, $ is shorthand for [set foo], so that $foo == [set foo]. You can use this to do 'double indirection' if you really need to: set foo bar set ba
by davidw 16y ago
In Tcl, $ is shorthand for [set foo], so that $foo == [set foo]. You can use this to do 'double indirection' if you really need to:
set foo bar
set bar 5
puts [set [set foo]]
OTOH, $$foo does not work in Tcl.