Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f7ff519bc0a488a3f2a4f509207740fb4eb9ff3484e1e24d638bc604b0854c93
Ticket: 3ff0e9c3766763bf77d00b0d0c10f59c34e256ac
Function to get class name of object
User & Date: rene on 2019-12-03 15:44:22
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    There is currently no way to get the class of an object without poking in tcl oo internals. This should be possible with a simple function p.e.:
    
    Tcl_Obj *
    Tcl_GetClassName(
        Tcl_Interp * interp,
        Tcl_Object object)
    {
        Tcl_Object classPtr;
        classPtr = (Tcl_Object)(((Object *)object)->selfCls->thisPtr);
        if (classPtr == NULL) return NULL;
    
        return Tcl_GetObjectName(interp, classPtr);
    }
    
  5. foundin changed to: "all"
  6. is_private changed to: "0"
  7. login: "rene"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "b01eeb7d5874b6e5a8593e7c5eb485bf20fddefb"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "rene"
  14. subsystem changed to: "35. TclOO Package"
  15. title changed to: "Function to get class name of object"
  16. type changed to: "RFE"