is

is

Name

itcl::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