Version 0 of Itcl introspection

Updated 2007-11-20 13:18:30 by geoffm

Itcl provides many means of introspection. Once a class has been defined and an object of that class created then the class names and objects can be found in this manner:

  package require Itcl

  itcl::class abc {
        variable a 1
  }

  abc myobj
  abc myotherobj
  puts "Classes: [itcl::find classes]"
  puts "Objects: [itcl::find objects]"

The Itcl class manual page provides many more hints, such as

  myobj info variable
    ::abc::this ::abc::a

The methods of the object, and the body of the method can be obtained.