Skip to content
Tcl Source Code Artifact [b6a6d25a4f]
Login

Artifact [b6a6d25a4f]

Artifact b6a6d25a4fbf889cce1acc2f8f5d946e739140e8f97acf87f877f4b6e3f0e903:

Wiki page [branch/tip-757-obj-special] by dkf on 2026-07-05 15:17:52.
D 2026-07-05T15:17:52.575
L branch/tip-757-obj-special
N text/x-markdown
U dkf
W 394
A speculative idea that lets you use `%&s` in C-originated format strings. (Technically, you can use it in `format` too, but it ignores it.) It makes the formatting engine read the value from the var-args as a `Tcl_Obj*` instead of a `char *`, and applies `Tcl_GetString()` to it to get the string to use with the formatting engine core.

The downside is that it compilers and IDEs _hate_ it!
Z 2b00453597f78ad522319aa52a6c103a