Tcl has no native object-oriented programming support. However, there are a wealth of extensions adding object-oriented structure to Tcl.
[ignore][incr Tcl][/ignore], which
Bong pointed out, is the most widely used Tcl OO extension. It's modeled after C++ (and is a Tcl pun on C++), and so if you're familiar with C++, you should be able to pick up [ignore][incr Tcl][/ignore] fairly easily. You can read more about it on the Tcl'ers Wiki at
There is also a good book available on [ignore][incr Tcl][/ignore],
[ignore][incr Tcl/Tk][/ignore] from the Ground Up, by Chad Smith, ISBN 0-07-212106-8.
[ignore][incr Tcl][/ignore] isn't the only OO option for Tcl. The "Object orientation" page on the Wiki,
provides pointers to many more. One of particular note is
stooop, because:
[ol][li]It is a pure-Tcl extension, which means that it's slower than [ignore][incr Tcl][/ignore], but is completely platform-independent and requires no compilation.[/li]
[li]It is included in the Standard Tcl Library,
tcllib, as part of the standard Tcl distribution. See
for more information.[/li][/ol]
You can read more about stooop at
- Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax