Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

find(n) [osx man page]

find(n) 							    [incr Tcl]								   find(n)

__________________________________________________________________________________________________________________________________________________

NAME
find - search for classes and objects SYNOPSIS
itcl::find option ?arg arg ...? _________________________________________________________________ DESCRIPTION
The find command is used to find classes and objects that are available in the current interpreter. Classes and objects are reported first in the active namespace, then in all other namespaces in the interpreter. 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 [incr Tcl] classes. Classes in the current namespace are listed first, followed by classes in all other names- paces in the interpreter. 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. There- fore, you can use the following command to obtain a list where all names are fully-qualified: itcl::find classes ::* find objects ?pattern? ?-class className? ?-isa className? Returns a list of [incr Tcl] objects. Objects in the current namespace are listed first, followed by objects in all other names- paces in the interpreter. 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. Therefore, you can use the following command to obtain a list where all names are fully-qualified: itcl::find objects ::* KEYWORDS
class, object, search, import itcl 3.0 find(n)

Check Out this Related Man Page

is(n)								    [incr Tcl]								     is(n)

__________________________________________________________________________________________________________________________________________________

NAME
is - test argument to see if it is a class or an object SYNOPSIS
itcl::is option ?arg arg ...? _________________________________________________________________ DESCRIPTION
The is command is used to check if the argument given is a class or an object; depending on the option given. If the argument if a class or object, then 1 is returned. Otherwise, 0 is returned. The is command also recognizes the commands wrapped in the itcl code command. The option argument determines what action is carried out by the command. The legal options (which may be abbreviated) are: is class command Returns 1 if command is a class, and returns 0 otherwise. The fully qualified name of the class needs to be given as the command argument. So, if a class resides in a namespace, then the namespace needs to be specified as well. So, if a class C resides in a namespace N, then the command should be called like: is N::C or is ::N::C is object ?-class className? command Returns 1 if command is an object, and returns 0 otherwise. If the optional "-class" parameter is specified, then the command will be checked within the context of the class given. Note that className has to exist. If not, then an error will be given. So, if className is uncertain to be a class, then the programmer will need to check it's existance beforehand, or wrap it in a catch statement. So, if c is an object in the class C, in namespace N then these are the possibilities (all return 1): set obj [N::C c] itcl::is object N::c itcl::is object c itcl::is object $obj itcl::is object [itcl::code c] KEYWORDS
class, object itcl 3.3 is(n)
Man Page