---
name: "itcl_info"
section: "3itcl"
platform: "linux"
package: "itcl3-doc"
version: "3.2.1-5"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/itcl_info"
---

# itcl\_info(3itcl)

query info regarding classes and objects (obsolete)

## NAME

itcl\_info - query info regarding classes and objects (obsolete)

## SYNOPSIS

**itcl\_info classes ?***pattern*?\
 **itcl\_info objects ?***pattern*? ?**-class** *className*? ?**-isa** *className*?

## DESCRIPTION

This command is considered obsolete, but is retained for backward-compatibility with earlier versions of **\[incr Tcl\]**. It has been replaced by the "**find classes**" and "**find objects**" commands, which should be used for any new development.

The following commands are available in the global namespace to query information about classes and objects that have been created.

- **itcl\_info classes ?***pattern*?

  Returns a list of classes available in the current namespace context. If a class belongs to the current namespace context, its simple name is reported; otherwise, if a class is imported from another namespace, its fully-qualified name is reported.

  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.

- **itcl\_info objects ?***pattern*? ?**-class** *className*? ?**-isa** *className*?

  Returns a list of objects available in the current namespace context. If an object belongs to the current namespace context, its simple name is reported; otherwise, if an object is imported from another namespace, its fully-qualified access command is reported.

  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.

## KEYWORDS

class, object, object-oriented
