1namespacex(n)             Namespace utility commands             namespacex(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       namespacex - Namespace utility commands
9

SYNOPSIS

11       package require Tcl  8.5
12
13       package require namespacex  ?0.1?
14
15       ::namespacex hook add ?namespace? cmdprefix
16
17       ::namespacex hook proc ?namespace? arguments body
18
19       ::namespacex hook on ?namespace? guardcmdprefix actioncmdprefix
20
21       ::namespacex hook next arg...
22
23       ::namespacex info allchildren namespace
24
25       ::namespacex info allvars namespace
26
27       ::namespacex info vars namespace ?pattern?
28
29       ::namespacex state get namespace
30
31       ::namespacex state set namespace dict
32
33       ::namespacex state drop namespace
34
35______________________________________________________________________________
36

DESCRIPTION

38       This  package  provides  a  number of utility commands for working with
39       namespaces.
40

API

42       ::namespacex hook add ?namespace? cmdprefix
43
44       ::namespacex hook proc ?namespace? arguments body
45
46       ::namespacex hook on ?namespace? guardcmdprefix actioncmdprefix
47
48       ::namespacex hook next arg...
49
50       ::namespacex info allchildren namespace
51              This command returns a list containing the names  of  all  child
52              namespaces  in  the  specified  namespace  and its children. The
53              names are all fully qualified.
54
55       ::namespacex info allvars namespace
56              This command returns a list containing the names  of  all  vari‐
57              ables in the specified namespace and its children. The names are
58              all relative to namespace, and not fully qualified.
59
60       ::namespacex info vars namespace ?pattern?
61              This command returns a list containing the names  of  all  vari‐
62              ables in the specified namespace.
63
64       ::namespacex state get namespace
65              This  command  returns a dictionary holding the names and values
66              of all variables in the specified namespace and its child names‐
67              paces.
68
69              Note that the names are all relative to namespace, and not fully
70              qualified.
71
72       ::namespacex state set namespace dict
73              This command takes a dictionary holding the names and values for
74              a  set of variables and replaces the current state of the speci‐
75              fied namespace and its child namespaces with  this  state.   The
76              result of the command is the empty string.
77
78       ::namespacex state drop namespace
79              This command unsets all variables in the specified namespace and
80              its child namespaces.  The result of the command  is  the  empty
81              string.
82

KEYWORDS

84       extended namespace, info, namespace unknown, namespace utilities, state
85       (de)serialization, unknown hooking, utilities
86
88       Copyright (c) 200? Neil Madden (http://wiki.tcl.tk/12790)
89       Copyright (c) 200? Various (http://wiki.tcl.tk/1489)
90       Copyright (c) 2010 Documentation, Andreas Kupries
91
92
93
94
95tcllib                                0.1                        namespacex(n)
Impressum