Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 35b2e8cb8662d80a2aa77d31934fce82c231631ca90eea873a87156a86e03724
Ticket: 3ff0e9c3766763bf77d00b0d0c10f59c34e256ac
Function to get class name of object
User & Date: dkf on 2024-05-23 14:01:31
Changes

  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"