Version 58 of package

Updated 2012-12-14 05:40:33 by pooryorick

Summary

This Tcl command is used for working with versioned libraries that provide functionality to Tcl and Tk. It is structured into subcommands.

Synopsis

package forget ?package package ...?
package ifneeded package version ?script?
package names
package present ?-exact? package ?version?
package provide package ?version?
package require ?-exact? package ?version?
package unknown ?command?
package vcompare version1 version2
package versions package
package vsatisfies version1 version2

Documentation

   [http://www.tcl.tk/man/tcl/TclCmd/package.htm%|%man page%|%]

See Also

User Guide
Developer Guide
extension
pkg_mkIndex
(deprecated)
Using Tk as a loadable package
Where does the package command find the packages it seeks?
package management
Tcl syntax

pkgIndex.tcl

[Is there no succinct reference that explains the crucial role of pkgIndex.tcl?!? CL will return to this, if no one else does.]

DGP --- The man page for pkg_mkIndex, http://www.purl.org/tcl/home/man/tcl8.5/TclCmd/pkgMkIndex.htm covers the basics in the HOW IT WORKS section.

[Good point.] It's crucial that package authors understand pkgIndex.tcl as a keyword in package preparation.

DGP --- For now, yes, but stay tuned for better ideas. We don't want to be chained to pkgIndex.tcl files forever.

See also pkg_mkIndex pitfalls.


[One summary statement: package use currently requires comprehension of pkgIndex.tcl (see Magic names).]