From: Maurice L. <mj...@ga...> - 2002-11-10 02:42:27
|
Alan W. Irwin writes: > Some proliferation of API like this at the C level is probably worth it. But > the interfaces also have a role that can be played. For example, in my > user-friendly python interface, I define a lot of different simplified API's > for plcont, plshade, and plshades without having to use different names. It > is extremely easy to do this in python because it is an object-oriented > language. Since C++, java, tcl (via itcl), and even perl have OO, then it > should be easy to translate what I have done in python to those other > languages as well. Alas, but iTcl doesn't support method overloading by number of arguments (or type, naturally, as Tcl's typeless). The best you can do is use default args. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |