Category talk:Tcl: Difference between revisions

(Ask usage)
 
(One intermediate revision by the same user not shown)
Line 54:
"set c1 [uplevel 1 [list expr $cond1]
What am I doing wrong? Is 'tclsh' the right command? --[[User:Abu|Abu]] 10:11, 27 August 2010 (UTC)
<hr>
'tclsh' is most often the right command to run the Tcl interpreter. 'wish' is Tcl+Tk (the GUI toolkit), but you can as well add
package require Tk
early in the script, which then can also be called with 'tclsh'.
 
"Extend your language" is buggy (brackets must be balanced) in
set c1 [uplevel 1 [list expr $cond1]
set c2 [uplevel 1 [list expr $cond2]
where a "]" is missing at the end of both lines. I think one should only paste tested code, and test again after editing it...
-- [[User:Suchenwi|Suchenwi]] ([[User talk:Suchenwi|talk]]) 22:34, 30 January 2021 (UTC)
Anonymous user