I salute the initiative of writing an OOP extension for Tcl in plain Tcl instead of C, but I do not agree with the approach. Here's why:
o C++ is much too complex for its own good. Especially, it is too complex to be popular;
o The object model implemented by C++ is far too rigid for a flexible language like Tcl;
o Why make it simple if you can have it complicated?
Given the above, I'd like to suggest a different way of doing it, based on JavaScript's object model instead of C++'s. Visit http://www.geocities.com/felixp7/projects/oops.html (if it doesn't work, please enter through the index page).
Still, it will be my pleasure to test ClassTcl when I get the time -- next month maybe :-(((
Felix
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, there,
I salute the initiative of writing an OOP extension for Tcl in plain Tcl instead of C, but I do not agree with the approach. Here's why:
o C++ is much too complex for its own good. Especially, it is too complex to be popular;
o The object model implemented by C++ is far too rigid for a flexible language like Tcl;
o Why make it simple if you can have it complicated?
Given the above, I'd like to suggest a different way of doing it, based on JavaScript's object model instead of C++'s. Visit
http://www.geocities.com/felixp7/projects/oops.html (if it doesn't work, please enter through the index page).
Still, it will be my pleasure to test ClassTcl when I get the time -- next month maybe :-(((
Felix