Using the familiar class, new, delete and virtual keywords and a few coding conventions, you can start object oriented Tcl code right away. The class , new , delete , virtual and classof commands are implemented as Tcl procedures. Stooop was implemented with a constant concern for performance. Member data is stored in Tcl associative arrays, which are best for random data access. Classes are implemented as namespaces to improve encapsulation and reduce naming interferences.
Object oriented helper code is kept as small and as efficient as possible.
Typically, only a couple of Tcl lines are added to a member procedure definition. Program startup time will be slightly increased due to some class and member procedures preprocessing, but runtime overhead is kept to a strict minimum. Use of object oriented techniques may actually improve the performance of your code. Extended Tcl is a set of Tcl extensions and a shell that are oriented towards Unix system programming tasks and large application development. Tea Tea is a wrapper around Tcl that provides object-oriented functionality and features.