1find(n)                           [incr Tcl]                           find(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       itcl::find - search for classes and objects
9

SYNOPSIS

11       itcl::find option ?arg arg ...?
12______________________________________________________________________________
13
14

DESCRIPTION

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
38                     itcl::find classes ::*
39
40       find objects ?pattern? ?-class className? ?-isa className?
41              Returns a list of [incr Tcl] objects.  Objects  in  the  current
42              namespace  are  listed  first,  followed by objects in all other
43              namespaces in the interpreter.  If the optional pattern is spec‐
44              ified,  then  the reported names are compared using the rules of
45              the  "string  match"  command,  and  only  matching  names   are
46              reported.  If the optional "-class" parameter is specified, this
47              list is restricted  to  objects  whose  most-specific  class  is
48              className.   If the optional "-isa" parameter is specified, this
49              list is further restricted to objects having the given className
50              anywhere in their heritage.
51
52              If an object resides in the current namespace context, this com‐
53              mand reports its simple name--without any qualifiers.   However,
54              if  the pattern contains :: qualifiers, or if the object resides
55              in another context, this  command  reports  its  fully-qualified
56              name.   Therefore, you can use the following command to obtain a
57              list where all names are fully-qualified:
58
59                     itcl::find objects ::*
60

KEYWORDS

62       class, object, search, import
63
64
65
66itcl                                  3.0                              find(n)
Impressum