Stands for Tool Command Language Used for rapid prototyping, GUIs, and scripted applications Created by John Ousterhout in 1988 out of frustration Currently 500,000+ active developers of Tcl
All data types can be manipulated as strings All operations are commands Was designed to interface with the C language, but also interfaces with C++, Java, and other languages now “Safe Tcl” developed for using within messages
Logon to RUCS. At the prompt, enter tclsh. You can then enter commands and run a Tcl script!
TCL: set out [open file.txt a] Java: PrintWriter out = new PrintWriter(new FileOutputStream("file.txt",true)) ;
TCL: set numbers [expr 1+2] set text “hello” puts “$numbers” puts “$text” Java: int numbers = 1+2; string text = “hello”; System.out.println(numbers); System.out.println(text);
n-Development/Tcl-Programming- Language-20-Things-You-Dont-Know n-Development/Tcl-Programming- Language-20-Things-You-Dont-Know