Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
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 list

1. 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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho