Tcl
In this part of the Tcl tutorial, we will introduce the Tcl programming language.
Goal
The goal of this tutorial is to get you started with the Tcl programming language. The tutorial covers the core of the Tcl language, namely variables, lists, arrays, control structures, and other core features. It is not a complete coverage of the language. It is a quick, introductory material. The tutorial was created on Ubuntu Linux.
Tcl
Tcl logo Tcl is a string based scripting language. The source code is compiled into bytecode, which is later interpreted by the Tcl interpreter. It was created by John Osterhout in 1988. The purpose was to create a language which is easily embeddable into applications. But it is often used outside its original area. The language is commonly used for rapid prototyping, scripted applications, GUIs, and testing. The Tcl stands for tool command language, where the source code of a Tcl script consists of commands.
Tcl is a procedural language. It has some functional features. OOP was added in Tcl verstion 8.6.
The official web site for both Tcl and its Tk GUI toolkit is tcl.tk
Popularity
There are hundreds of programming languages in use today. Tcl does not belong to the most popular ones. It has its own niche where it used. For instance, rapid prototyping, testing, and database interaction.
Interactive interpreter
We can run Tcl commands in a script or in an interactive interpreter. In this tutorial, we will use the interactive Tcl session to demonstrate some smaller code fragments. Larger code examples are to be put in Tcl scripts.
The tclsh is a shell-like application that reads Tcl commands from its standard input or from a file and evaluates them. If invoked with no arguments then it runs interactively, reading Tcl commands from standard input and printing command results and error messages to standard output.
Tcl /Tk is an excellent scripting language for creating cross-platform GUI programs. Our three day, hands-on training class is designed to give you a comprehensive introduction to Tcl/Tk.
Programming experience in a high-level language
Students will receive the following valuable materials:
Here are some ways to tailor this class to your specific needs.
Don't hesitate to let us know how we can assist you or your company.