Name

namespace

namespace [option] [arg...]

Create and manipulate contexts for commands and variables.

namespace children [namespace] [pattern]

Return a list of child namespaces that belong to the namespace matching pattern. If pattern is omitted, return all namespaces. If namespace is omitted, return children of the current namespace.

namespace code script

Accept a command script and return it wrapped such that the resulting script can be evaluated from any namespace, but will execute in the current namespace in which the namespace code command was invoked.

namespace current

Return the fully qualified name of the current namespace.

namespace delete [namespace...]

Delete the given namespaces and all associated variables, procedures, and child namespaces.

namespace eval namespace arg...

Evaluate the arguments in the context of the specified namespace.

namespace export [-clear][pattern...]

Export commands matching one or more patterns from the current namespace. With the -clear option, first reset any previous exports. With no option or patterns, return the current export list.

namespace forget [pattern...]

Remove previously exported commands matching one or more patterns from a namespace.

namespace import [-force][ pattern...]

Import commands matching one or more fully qualified patterns. Option -force allows imported commands to replace existing commands.

namespace inscope namespace arg...

Evaluate arguments in the context of namespace.

namespace origin command

Return the fully qualified name of the imported command command.

namespace parent[namespace]

Return the fully qualified name of the parent for namespace namespace. Return the parent of the current namespace if the argument is omitted.

namespace qualifiers string

Return the leading namespace qualifiers from string, which refers to a namespace name.

namespace tail string

Return the simple name at the end of string, which refers to a namespace name.

namespace which [-command[-variable] name

Return the fully qualified name of name. Option -command looks up name as a command (default), and option -variable looks up name as a variable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset