.
D 2025-10-14T20:33:52.071
L branch/c11-printf-result
N text/x-markdown
P c6dbca27adf9415b6b6792f366a274581f6191e8d3f95142fd090eff4155a159
U dkf
W 633
This is based on the much wider changes in the `c-std-update` branch.
This uses C11 variadic macros to create especially `TclPrintfResult()`, which gives us back approximately the feeling of doing `sprintf(interp->result, ...)` from Tcl 7, except now in a Tcl_Obj-safe way. It's been used in this branch almost entirely for handling errors, which are typically not regarded as performance-critical.
> This is a feature that is _recommended_ for adoption. We _may_ want to promote `TclPrintfResult()` to the public API; it requires no new functions, as it is only a source-level feature. That is **out of scope** of this branch.
Z 613e7830986530462700c9d54824824d