Main Content

The ireallyreallywanna operator

Archive - Originally posted on "The Horse's Mouth" - 2005-06-28 07:18:27 - Graham Ellis

In Tcl, any character (yes - any character) can appear in a variable name, though making use of variable names that contain - for example - spaces adds a needless complexity to your coding. Groups of special characters can be protected from the Tcl interpreter by wrapping them in curly braces, and individual characters protected by preceding them with a backslash character. That's a more general rule - it applies not only to variable names, but also to any single parameter string.

You could say that { } and \ are the "ireallywanna" operators ... in the same way that you can say that [ ] is the "choose me first" operator and that $ is the "contents of" operator.