Just for fun, this is the the code I use in the base class:
int GetItclObj (ItclObject **contextObj, Tcl_Obj *cmd)
{
ItclClass *contextClass;
// Get the object context we are in
if (Itcl_GetContext(interp, &contextClass, contextObj) != TCL_OK
|| !contextObj) {
char *token = Tcl_GetString(cmd);
Tcl_ResetResult(interp);...
I would like to use the following types and function:
ItctObject
ItclClass
Itcl_GetContext()
I use the object context to associate to a C++ instance. It is still invisible to me without the itclInt.h header file and friends. Those components are not installed and still many years later I have to still build from source.