Updated 2012-09-27 14:22:59 by LkpPo

namespace forget ?pattern pattern ...?

Removes previously imported commands from a namespace. Each pattern is a simple or qualified name such as x, foo::x or a::b::p*. Qualified names contain ::s and qualify a name with the name of one or more namespaces. Each qualified pattern is qualified with the name of an exporting namespace and may have glob-style special characters in the command name at the end of the qualified name. Glob characters may not appear in a namespace name. For each simple pattern this command deletes the matching commands of the current namespace that were imported from a different namespace. For qualified patterns, this command first finds the matching exported commands. It then checks whether any of those commands were previously imported by the current namespace. If so, this command deletes the corresponding imported commands. In effect, this un-does the action of a namespace import command.

See also:

Category Command[Category Tcl syntax help]