Version 6 of Tcl Package User Guide

Updated 2012-12-14 05:16:12 by pooryorick

Summary

How to use and manage Tcl packages.

See Also

User Guide

Package Developer Guide

Description

In the most elementary case, using a package is a matter of directly employing the load or source command to make the code in some file available to Tcl. This can be seen in the following examples:

extension example

Typically, however, packages are distributed such that they can be loaded via the package command.

Just getting a package found already:

Where does the package command find the packages it seeks?:

How to unload a package:

Package tips and tricks: