Questions tagged [tcl]

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines. See the Wikipedia page for Tcl for more information.

The current recommended production release of Tcl is Tcl/Tk 8.6.13 (Nov 22, 2022).

Previous versions of the language are currently relatively common. Tcl 8.5 is widely deployed (current patch version 8.5.18). As is Tcl 8.4 in more conservative deployments (8.4.20 is current, but end-of-lifed there). Use of Tcl 8.4 or earlier is usually not recommended, as it does not receive security-fix support from the Tcl developers.

Naming

You may write the language name as either TCL or Tcl; practitioners tend to prefer the latter on the grounds that it means they don't have to hold the shift key down so long. For pronunciation purposes, either “tee cee ell” or “tickle” are acceptable, depending on audience.

Resources

Questions:

Books:

Websites:

7879 questions
2
votes
1 answer

How do I make leap years work?

I have some code here in TCL that tries to measure the time between two dates. The two first work, but as you see the last one not working; it counts totally wrong, as there can only be 12 month in a year, but this has more than that. Anyway, I…
Whiskey
  • 33
  • 3
2
votes
2 answers

Tcl. How to replace line of code with the value that is returned by string map?

Note: Below there is part of code that I think will be more then enough for my question. But I also put the zip archive of whole script at the end of this post. What is need to do: I need to replace line " argc ; number " with the value that is…
vasili111
  • 6,032
  • 10
  • 50
  • 80
2
votes
1 answer

Why does my Tk application error out with "unknown color name white"?

I just installed tkdiff on a ubuntu machine and when I try and run the program I get the following error: actual font: -family {DejaVu Sans Mono} -size -12 -weight normal -slant roman -underline 0 -overstrike 0 Error in startup script: unknown…
stephenmm
  • 2,640
  • 3
  • 30
  • 48
2
votes
2 answers

Why are my bindings blocked?

I'm rewriting an already working application from the ground up, and a couple of modules in I hit a curious snag. At present, the only thing it does is read in CSV file into a dictionary, set up the GUI, and write the dictionary back to CSV. The GUI…
Peter Lewerin
  • 13,140
  • 1
  • 24
  • 27
2
votes
6 answers

"exec source