1find(n) [incr Tcl] find(n)
2
3
4
5______________________________________________________________________________
6
8 find - search for classes and objects
9
11 itcl::find option ?arg arg ...?
12_________________________________________________________________
13
14
16 The find command is used to find classes and objects that are available
17 in the current interpreter. Classes and objects are reported first in
18 the active namespace, then in all other namespaces in the interpreter.
19
20 The option argument determines what action is carried out by the com‐
21 mand. The legal options (which may be abbreviated) are:
22
23 find classes ?pattern?
24 Returns a list of [incr Tcl] classes. Classes in the current
25 namespace are listed first, followed by classes in all other
26 namespaces in the interpreter. If the optional pattern is spec‐
27 ified, then the reported names are compared using the rules of
28 the "string match" command, and only matching names are
29 reported.
30
31 If a class resides in the current namespace context, this com‐
32 mand reports its simple name--without any qualifiers. However,
33 if the pattern contains :: qualifiers, or if the class resides
34 in another context, this command reports its fully-qualified
35 name. Therefore, you can use the following command to obtain a
36 list where all names are fully-qualified:
37 itcl::find classes ::*
38
39 find objects ?pattern? ?-class className? ?-isa className?
40 Returns a list of [incr Tcl] objects. Objects in the current
41 namespace are listed first, followed by objects in all other
42 namespaces in the interpreter. If the optional pattern is spec‐
43 ified, then the reported names are compared using the rules of
44 the "string match" command, and only matching names are
45 reported. If the optional "-class" parameter is specified, this
46 list is restricted to objects whose most-specific class is
47 className. If the optional "-isa" parameter is specified, this
48 list is further restricted to objects having the given className
49 anywhere in their heritage.
50
51 If an object resides in the current namespace context, this com‐
52 mand reports its simple name--without any qualifiers. However,
53 if the pattern contains :: qualifiers, or if the object resides
54 in another context, this command reports its fully-qualified
55 name. Therefore, you can use the following command to obtain a
56 list where all names are fully-qualified:
57 itcl::find objects ::*
58
59
61 class, object, search, import
62
63
64
65itcl 3.0 find(n)