|
2025-01-18
| ||
| 14:48 | • Ticket [0f3e1921c5] TIP 426 C API not implemented status still Open with 3 o... artifact: 6d764ca18d user: juliannoble2 | |
|
2024-05-22
| ||
| 03:43 | • Ticket [0f3e1921c5]: 3 changes artifact: 8a63cfd03d user: apnadkarni | |
|
2024-05-20
| ||
| 03:13 | • Ticket [0f3e1921c5]: 3 changes artifact: ad3a9f716d user: apnadkarni | |
|
2024-05-19
| ||
| 11:21 | • Ticket [0f3e1921c5]: 3 changes artifact: 16a2e6bbf3 user: jan.nijtmans | |
| 11:15 | • Ticket [0f3e1921c5]: 4 changes artifact: 7639a87797 user: jan.nijtmans | |
| 06:34 | • Ticket [0f3e1921c5]: 3 changes artifact: 11c91472c7 user: apnadkarni | |
| 06:34 | • New ticket [0f3e1921c5]. artifact: a1cd0f2eb2 user: apnadkarni | |
TIP 426 C API not implemented
Only logging this ticket in case this is an oversight and not intentional. TIP 426 as voted defines the public API's Tcl_RegisterCommandTypeName and Tcl_GetCommandTypeName.
I do not however find these functions defined in tcl.decls.
I don't think it's difficult to add those to the public API: Those functions are MODULE_SCOPE, and named `TclRegisterCommandTypeName`/`TclGetCommandTypeName`. But ... would any extension need those?
I think the answer to this question is `No`, so I would suggest to leave the implementation as-is. We can modify the TIP, mentioning this change-of-insight.
That said, I don't object to making this public (if there is an interest implementing the Tk-part, as mentioned in the TIP). In that case, I recommend only doing this for 9.0, not for 8.7.
I do not have any particular need for the aforementioned functions so I am fine leaving things as they are. Only brought it up in case they were omitted as an oversight and not by intent.
Donal, please close ticket if the functions in question were not exported by intent.
I would like to see this as part of the public API to (hopefully) improve introspection in some mainstream packages. for example the command created by 'sqlite3 dbcmd' is of type native - and I'd like to identify it as belonging to sqlite3 (for documentation & command completion) without the risk of calling unknown native commands that may have side effects. If this were public I'd be inclined to submit an RFE on the sqlite forum for adding a specific type such as sqlite3::dbcmd via this mechanism. Presumably some guidance for package developers to avoid collisions via something like a prefix matching the package name would be nice too.(?) I'd be interested also to hear if this may eventually be coming - or if there is perhaps some concern about collisions or type name proliferation?