Skip to content
Tcl Source Code History Of Ticket 218401
Login

History Of Ticket 218401

Artifacts Associated With Ticket 218401

  1. Ticket change [b5f48cfa70] (rid 125339) by nobody on 2000-10-26 00:57:08:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5294 RFE
      Version: 8.3
      SubmitDate: '2000-04-28'
      LastModified: '2000-05-17'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: All
      FixedDate: '2000-10-25'
      ClosedDate: '2000-05-17'
      
      
      Name:
      Graham Swallow
      
      DesiredBehavior:
      What is the use of defining your own type, but not being able to
      add your own information, in the objects type record?
      obj->typePtr->*  should look like this
      
      typedef struct Tcl_ObjType {
          char *name; 
          Tcl_FreeInternalRepProc *freeIntRepProc;
          Tcl_DupInternalRepProc *dupIntRepProc;
          Tcl_UpdateStringProc *updateStringProc;
          Tcl_SetFromAnyProc *setFromAnyProc;
      // add these
      ClientData ExtnMgr; // MUST be unique pointer
      ClientDataItem_Type_Info; // no free requred
      } Tcl_ObjType;
      
      Both might be NULL for core components, or extensions,
      
      ExtnMgr must be unique (or null), and has no usefulness except for
      if( ExtnMgr == MyExtnMgr )  {
      // its worth looking at the Item_type_info->*
      // and the format there is *my* format
      }
      
      Item_type_Info belongs to my extension manager, it is the useful part.
      It gives info on a per-type basis. 
      
      Without this being a part of obj->typePtr, I have to use some slow/clumsy mechanism.
      
      Changes to the Tcl Core:
      redefine that struct
      and init it NULL in RegisterObj
      add RegisterObjWithoutClearingExtnFields
      plus future "RegisterObj" wont clear fields after 9.0 
      
      ExtnMgr "must be" a pointer so that is is guaranteed to be unique (or null)
      but it remains as opaque ClientData to all other extensions. No delete required ?
      
      Graham
      
      
      
      It was pointed out in discussion on the newsgroup that use of
      extended objects provides the necessary functionality:
        http://x34.deja.com/=dnc/getdoc.xp?AN=616571207 
      -- 05/17/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "Types without Info is a dreadful waste"
    11. type initialized to: "Bug"
  2. Ticket change [0ab811157c] (rid 113873) by welch on 2000-10-26 08:21:17:

    1. closedate changed to: "2000-10-26T01:21:17"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"