find
Section: [incr\ Tcl] (n)
Updated: 3.0
Index
Return to Main Contents
NAME
find - search for classes and objects
SYNOPSIS
find option ?arg arg ...?
DESCRIPTION
The find command is used to find classes and objects
that are available in the current context. A class or object is
"available" if its access command can be found in the current
namespace context or in the global namespace. Therefore,
classes and objects created in the global namespace are
available to all other namespaces in a program. Classes and
objects created in one namespace can also be imported into
another using the namespace import command.
The option argument determines what action is carried out
by the command. The legal options (which may be abbreviated)
are:
- find classes ?pattern?
-
Returns a list of classes found in the current namespace context.
If the optional pattern is specified, then the reported names
are compared using the rules of the "string match" command,
and only matching names are reported.
If a class resides in the current namespace context, this command
reports its simple name--without any qualifiers. However, if the
pattern contains :: qualifiers, or if the class resides
in another context, this command reports its fully-qualified name.
- find objects ?pattern? ?-class className? ?-isa className?
-
Returns a list of objects found in the current namespace context.
If the optional pattern is specified, then the reported names
are compared using the rules of the "string match" command,
and only matching names are reported.
If the optional "-class" parameter is specified, this list is
restricted to objects whose most-specific class is className.
If the optional "-isa" parameter is specified, this list is
further restricted to objects having the given className
anywhere in their heritage.
If an object resides in the current namespace context, this command
reports its simple name--without any qualifiers. However, if the
pattern contains :: qualifiers, or if the object resides
in another context, this command reports its fully-qualified name.
KEYWORDS
class, object, search, import
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- KEYWORDS
-
This document was created by
man2html
using the manual pages.
Time: 22:22:20 GMT, November 16, 1999