Skip to content
Tcl Source Code Timeline
Login

Timeline

About branch tip-757-obj-special

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!

3 check-ins related to "tip-757-obj-special"
2026-07-05
18:32
Alternative with %#s, for fewer tool grumbles leaf check-in: f31fb86990 user: dkf tags: tip-757-obj-special-alt
15:09
Special handling for %&s to allow passing Tcl_Objs directly to Tcl_ObjPrintf leaf check-in: 7af2ecc37b user: dkf tags: tip-757-obj-special
10:57
Inline Tcl_GetObjResult and Tcl_SetObjResult check-in: 3cacc758e8 user: dkf tags: tip-757