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
. Ifpattern
is omitted, return all namespaces. Ifnamespace
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 ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.