Version 42 of Tcl

Updated 2008-10-30 16:12:22 by LV

Tcl - the reason for most of the commotion on this Wiki! What is Tcl?

What
Tcl
Where
http://tcl.sf.net/
Description
An embeddable dynamic language interpreter. The sample "tclsh" is frequently used as a shell interpreter. Currently at version 8.5.5 formally released with 8.6a3 being the latest alpha release.
Updated
10/2008
Contact
See web site

Tcl stands for Tool Command Language - but is not typically thought of as an acronym (and pronounced like "tickle" by all in the know). Best use the spelling with capital T and lowercase "cl" - TCL might mean different things, e.g. a Chinese electronics company.

There are so many URLs that could be placed here - hopefully the important ones make it:

http://www.purl.org/tcl/home/man/tcl8.5/TclCmd/Tcl.htm

http://purl.org/tcl/home/ and http://www.tcl.tk/ point to the same major web site containing lots of information regarding Tcl.

This wiki is yet another (and we Wikians strive to make it the richest!)

http://purl.org/net/tcl-faq/ is a series of pointers to other documents.

http://tcl.sf.net/ is the home for the source code of Tcl. At this web site is not only the Tcl releases, but also the thread extension and currently some MacOS X snapshots. The CVS also shows the sample TEA extension code residing in this project - unfortunately, it does not yet appear that this code has been released as a package. It is, thank goodness, available from the CVS as well as from the CVS snapshot repository at ftp://www.tcl.tk/pub/tcl/nightly-cvs/ . Besides being the home for Tcl, the tcl SF.net project is also the home for other modules, such as tcltutorial, thread, sample extension, as well as the FAQs, pieces of code which are being integrated into future versions of Tcl and other miscellaneous things.

Read to build and test Tcl for more information on creating an executable library and stand alone scripting framework from the Tcl source code distribution.

Binary Distributions and places to find Tcl binaries and sources are two pages to discuss locating Tcl binaries.

http://www.tcl.tk/software/tcltk/platforms.html details the platforms known to support Tcl and Tk.

http://de.wikipedia.org/wiki/Tcl is a German wiki with useful articles on Tcl. http://en.wikipedia.org/wiki/Tcl is the English version.

Could use some care and updating...


How do you know you are using Tcl? That's a good question - in some cases, Tcl is inside a product and you may or may not even have access to the scripting engine itself.

However, if you are wanting to write and execute a tcl script, you have a number of options.

  • Out of the box, tclsh is a stand alone interpreter build from the tcl source code distribution
  • wish is a tcl interpreter with the Tk extension pre-loaded. It is created when building Tk.
  • tclkit is a all-in-one-file combination of Tcl, Tk, Metakit, Itcl, tclvfs and a few other extensions.
  • expect is a tcl interpreter with the expect extension pre-loaded. It is created when building expect.
  • A command called tcl (as well as wishx) used to be built and installed as a part of building and installing the Tclx extension.
  • itclsh is a tclsh pre-extended with Itcl.
  • tixwish is built and installed as a part of the Tix build process
  • bltsh and bltwish are built and installed as a part of the BLT build process.
  • tcldomsh is built and installed as a part of the TclDOM build process
  • xotclsh and xowish are built and installed as a part of the XOTcl build process.

As of Tcl 8.4, the only interpreters that you really need to think about are tclsh and tclkit , as Tcl provides the ability to dynamically load any of the other extensions during runtime. In fact, many of the extensions have been dropping the building and installing of custom extensions due to this.

Tcl Commands documents all the Tcl commands available in the core distribution.

Tcl C API documents all the public Tcl C calls that a C programmer should consider safe to use.

Tcl also comes with several packages. For instance, the http package, dde, msgcat, platform, registry, tcltest, the deprecated optparse package, as well as others [please fill them in here].


64-bit computing


The arts and crafts link, below, will lead you to tutorials and other useful information about Tcl as a programming language.


Arts and crafts of Tcl-Tk programming | the way tcl works | Tcl Command Evaluation: Layer by Layer