Skip to content
Tcl Source Code History Of Ticket 3ff0e9c376
Login

History Of Ticket 3ff0e9c376

Artifacts Associated With Ticket 3ff0e9c376

  1. Ticket change [f7ff519bc0] (rid 177596) by rene on 2019-12-03 15:44:22:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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 initialized to: "all"
    6. is_private initialized to: "0"
    7. login: "rene"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "b01eeb7d5874b6e5a8593e7c5eb485bf20fddefb"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "rene"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to: "Function to get class name of object"
    16. type initialized to: "RFE"
  2. Ticket change [35b2e8cb86] (rid 226531) by dkf on 2024-05-23 14:01:31:

    1. icomment:
      I'd go for `Tcl_ObjectGetClass()` or some name like that.
      
      
      ```
      Tcl_Class
      Tcl_ObjectGetClass(
          Tcl_Object object)
      {
          return (Tcl_Class) (((Object *) object)->selfCls);
      }
      ```
      
      The retrieval of the object from the class and the name from that object would be done with existing API calls. Or we can add in those helpers; it will be helpful if we can work out which ones so we can do this in one go.
      
    2. login: "dkf"
    3. mimetype: "text/x-markdown"
  3. Ticket change [e48b4650a7] (rid 229854) by dkf on 2024-08-08 10:42:15:

    1. login: "dkf"
    2. mimetype: "text/plain"
    3. priority changed to: "6"
  4. Ticket change [b9153b6765] (rid 261537) by serhiy.storchaka on 2026-11-13 11:18:44:

    1. closedate changed to: "2461357.9713335303"
    2. closer changed to: "serhiy.storchaka"
    3. icomment:
      Implemented in Tcl 9.0 by TIP 605: Tcl_GetClassOfObject returns the class of an object and Tcl_GetObjectClassName returns the name of that class.
      
    4. login: "serhiy.storchaka"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"