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
 
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems

Phone System reconfiguration 11.1.2018 and 12.1.2018 - we are on email but incoming phone not available all the time
 
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., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho