Exercises, examples and other material relating to training module T243. This topic is presented on public courses Learning to program in Tcl
, Tcl Programming
, Tcl Programming
The majority of Tcl users will use the Tcl shell itself, or wish or expect or another application in which the language is already embedded. If you want to embed Tcl in an application yourself, this module gives you a brief introduction.
|Articles and tips on this subject||updated|
|3416||Storing Tcl source code encoded, and running via your own C program|
Tcl is a language. And Tcl is also a C library. How's that?
Tcl originates from a requirement to provide a taioring capability within C programs that could be accessed in a program-like style. And the program-like style that was implemented actually had the full capabilities of a programming language. ...
|208||Examples - Gadfly, NI Number, and Tcl to C interface|
Although the languages that we train on are much more stable (and unchanging) than you might think, people are always coming up with new uses and asking for further examples; many of the examples out there aren't quite right, are too complex, or aren't relevant in the UK. So I find myself writing and ...
Examples from our training material
|extend.c|| Extending Tcl with C - an extra command written in C|
|fred|| Demo Tcl for mytcl example|
|fred_extended|| Tcl used to demo extension with same command|
|fullapp.c|| C program that invokes a Tcl Interpreter|
|makefile|| Makefile for C applications in this module|
|mytcl.c|| Simplest call from C to Tcl - just a wrapper|
|secret.c|| Run a Tcl script from an encoded file|
PicturesWe will teach Tcl wherever required
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Embedding a TCL interpreter in a C program.
Adding commands written in C to your Tcl.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.