From: Jan N. <jan...@gm...> - 2025-04-06 15:41:41
|
Op zo 6 apr 2025 om 14:48 schreef Gustaf Neumann (sslmail) <ne...@wu...>: > > Just for my understanding: the "string based" interface will not support 2^31+ arguments, and there will be no variant similar to the Tcl_Obj based counterparts. > This makes the "string based” interface based on Tcl_CreateCommand a legacy interface. Right? Right. For every such function call, a "const char *" array is allocated, the string values of all Tcl_Obj arguments are copied in there, and - when the call returns - everything is cleaned up. This makes Tcl_CreateCommand functions less efficient, they should be discouraged. However, I don't think we should ever remove this interface: there are still too many extensions using it. Deprecating an interface means that _some day_ the interface might be removed. It is not a promise that it will be removed in Tcl 10. That still can be decided then (which will need a TIP) Hope this helps, Jan Nijtmans |