Yes, It throws error message only when it enters into else block.
This is not the case in C/C++.
Is there any Tcl debugger which displays all syntax errors in a block even if it does not enter into that particular block.
Please let me know
Thanks
Prashanth
Hi
That is what my question. I don't get any error even if "jsfdlkdsjfh" procedure is not defined. What should I do to get error message "procedure not defined".
Please also consider this case
set x 1
if {$x ==1 } {
puts "x=1"
} else {
set x "End double quote is missing
}
in the...
set x 1
if {$x == 1} {
puts "x=1"
} else {
jsfdlkdsjfh
}
Hello All,
In the above code, there is a Syntax error in the 'else' part. If I run this in tclsh, I don't get any error. Unlike c/C++, tclsh does not give all syntax errors in the script. Since, x=1 if condition is always satisfied so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.