auto_load
auto_load command ?namespace?
Defines a command from auto_index, which the tclIndex files of auto_path and tclPkgSetup (the lazy pkgIndex.tcl form) fill. Gives 1 when the command exists after it. The unknown command calls it for a missing command.
This page also has auto_load, auto_load_index, auto_reset, auto_qualify, auto_import, auto_execok.
Examples
auto_qualify foo ::bargives::bar::foo foo
Facts
- Capability:
package. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.