3 ms·
Tcl commands are lists, not strings. Or more precisely, they are coercible to strings or lists, but a well-formed Tcl command string is always coercible to a we
by jjnoakes 10y ago
Tcl commands are lists, not strings. Or more precisely, they are coercible to strings or lists, but a well-formed Tcl command string is always coercible to a well-formed Tcl list (not all Tcl strings are coercible to lists).
- pg314 10y agoThanks for the correction. It's been a while since I used Tcl and my memory of it was incorrect.
- kevin_thibedeau 10y agoIt used to be strings all the way down before the object system was implemented in 8.0. That incidentally is part of the reason why the expr command was created to process infix expressions since it would be too costly to keep converting sub-expressions back and forth from strings to numbers. http://www.tcl.tk/software/tcltk/8.0.html http://www.tcl.tk/software/tcltk/8.0.html