Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCl support OOPs?

Status
Not open for further replies.

tmpalaniselvam

Programmer
May 14, 2000
68
IN
Hi!
TCL support OOPs concepts? Is it possible to develop tools based on OOPs.?
I expect lots of queries from you............ Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com
 
Look at the [incr Tcl] extension:

"itclsh is a shell-like application that reads Tcl commands from its standard input, or from a file, and evaluates them. It is just like tclsh, but includes the [incrTcl] extensions for object-oriented programming" Bob Rashkin
rrashkin@csc.com
 
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
 
Hi!
Thanks Bong & Jones. Really it is helpful to me.
Thanks and Regards,
Palani.
mail to: tmpalaniselvam@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top