Overview
| Artifact ID: | 668f75f8d5f40eaf10bdd2944ca8e595e26c7ba7 |
|---|---|
| Ticket: | 2961556fffffffffffffffffffffffffffffffff
typedef functions in stead of function pointers |
| User & Date: | nijtmans on 2010-03-01 22:26:43 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "35. TclOO Package"
- title changed to: "typedef functions in stead of function pointers"
- type changed to: "Patch"