Skip to content
Tcl Source Code Changes To branch/tip-757-obj-special
Login

Changes To branch/tip-757-obj-special

Initial version of "branch/tip-757-obj-special"




1
2
3
+
+
+
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!