| |||||||||||
The 8 most common errors .... Posted by admin (Graham Ellis), 24 October 2002 "What's wrong with my program" - a very common cry from newcomers (and sometimes non-so-new-comers) to Tcl. This is a list of the 8 most common problems that I come across - you might like to quielly check any code that isn't doing what you expect (or isn't compiling) against the list1. Have you mis-spelt a variable name? 2. Have you mis-spelt a command name? 3. Have you used a $ when setting a variable, or left one off when using the contents of a variable? 4. Do your brackets balance? 5. Have you left spaces in the right places? 6. Have you added a new line in the middle of a command and forgotten the \ on the end of all lines except the last? 7. Do you need \ protection on anything? 8. Have you got () {} or [] mixed up? This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
Other Forum Posts Follow us on ... | ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |