Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 668f75f8d5f40eaf10bdd2944ca8e595e26c7ba7
Ticket: 2961556fffffffffffffffffffffffffffffffff
typedef functions in stead of function pointers
User & Date: nijtmans on 2010-03-01 22:26:43
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In all of Tcl, functions typedefs look like:
       typedef void (Tcl_FreeProc) (char *blockPtr);
    however, in TclOO, we have:
       typedef void (*Tcl_MethodDeleteProc)(ClientData clientData);
    
    I would like to suggest to keep function typedefs the
    same as all other functions typedefs in Tcl. Here is a
    patch that does exactly this.
    
    It has the advantage, that function pointers can be
    easily identified, simply because they really look like
    a pointer.
    
    This change is binary compatible, but not 100%
    source compatible. If an extension defines a variable
    of type function pointer, the syntax is a little bit different,
    a '*' has to be added. itcl does that once, the itcl change
    is included in the patch as well.
    
    If accepted, this has to be coordinated with Arnulf.
    Both TclOO and itcl are still in beta, so I don't think
    it's too late to fix this inconsitance between TclOO
    and other Tcl parts.
    
    Regards,
            Jan Nijtmans
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "typedef functions in stead of function pointers"
  12. type changed to: "Patch"