Tcl/tk basics-1

Source: Internet
Author: User
TCL(It was first called "tool command language" and "tool command language", but it does not mean it now, but we still call it TCL). It is a string-based scripting language. Created by John Ousterhout. TCL is very studious and powerful. TCL is often used for rapid prototyping, Script Programming, Gui and testing. Tickle in TCl ). TCL has the following features:

  • Everything is a command, including the syntax structure (for, if, etc ).
  • Everything can be redefined and reloaded.
  • All data types can be considered as strings.
  • Syntax Rules are quite simple.
  • Event-driven socket and files are provided. Time-based or user-defined events can also be used.
  • Dynamic domain definition.
  • It is easy to use C, C ++, or Java extension.
  • Explanation language and code can be dynamically changed.
  • Full Unicode support.
  • Platform independent. Win32, UNIX, and Mac.
  • Closely integrated with Windows GUI
  • The code is compact and easy to maintain.

TCL itself provides object-oriented support in the 8.6 S. Because the language itself is easily extended to support object-oriented, many C language extensions provided object-oriented capabilities before 8.6, including xotcl and incr TCL. In addition, SNIT extensions are written in TCl.

TK is the most widely used TCL extension. TK provides graphical user interface GUI for various OS platforms. Even the powerful Python language does not provide its own GUI, but provides interfaces to adapt to TK. Another popular extension package is the mobile CT. Mobile CT which provides the ability to automatically execute commands through terminals, such as passwd, FTP, telnet, and other command-driven shells ).

You can access ActiveState to download and install the latest TCL version. Common versions include 8.2, 8.4, and 8.5.
It is very convenient to compile TCL. Because it is a scripting language, you can directly write it with notepad. As long as the current system has installed TCL, you can directly run it. Of course, you can also use more powerful text tools, such as ultraedit (supporting syntax coloring), ps3( supporting syntax coloring), and Komodo IDE.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.