Version 112 of tclOO missing features for Itcl

Updated 2007-06-06 11:26:41 by APW

APW 2007-06-06 Some time ago I started efforts to reimplement Itcl on top of tclOO [L1 ]. After some detours I came back on the tclOO path, thinking that is the best starting point.

I started implementing extensions to tclOO to get a lot of features of Itcl to run. Doing that I learned a lot more details and "specialities" about Itcl.

Having now a better feeling about what is needed for Itcl I will start to write down the missing features and my solution for it in the hope that there will be some comments (especially from dkf). These could also include suggestions on how to solve the problem in a different way, without having to modify tclOO.

In the following solution means that is my current (not always optimal) solution for the problem

Here starts the list, I will add topics if they come up:

  * Namespace names for Itcl
problem
Itcl expects that the namespace of a class is the same as the class name
   solution:  add an option -withnamespace <namespace name> or a method createwithnamespace <namespace name>

  * calling of methods without my infront of the method name
problem
Itcl resolves command calls first within the class hierarchy before using the normal Tcl rules
solution
add a namespace unknown command as a dispatcher for Itcl methods

[ Category Object Orientation | Category discussion | Category Itcl ]