Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part I: The Tcl Language > Creating and Using Tcl Script Libraries

14. Creating and Using Tcl Script Libraries

Like any other modern programming language, Tcl allows you to group commonly used procedure definitions into libraries that can be used by many applications. A Tcl library can be as simple as a single script file defining a few utility procedures. Or you can combine multiple library script files into a single package that you can distribute. Packages also have version numbers associated with them, so applications can distinguish among different historic versions of a package and require specific ones.

Additionally, Tcl allows you to bundle entire Tcl applications or libraries into single-file packs called Starkits. Combined with the Tclkit single-file Tcl interpreter, this gives you a handy means of distributing your Tcl applications. You can even create a single-file application executable called a Starpack, which combines a Tclkit for a particular platform with a Starkit of your software.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint