Chapter 9
Basic Object-Oriented Programming in Tcl
Over the years, Tcl has suffered from a surplus of object-oriented programming systems without ever having an object-oriented system integrated into the language. With Tcl8.6, the TclOO package has become part of the core language. TclOO can be used with Tcl8.5 as a loadable package.
A few of the object-oriented packages that led to TclOO include:
• [incr tcl]
This was the first object-oriented system for Tcl. Like C++, it has been a standard for many years. The [incr tcl] extension duplicates the C++ model of classes with single and multiple inheritance, friend classes, private, protected and public methods and both class and object variables.
This is the most popular OO extension ...
Get Tcl/Tk, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.