Skip to content
Tcl Source Code Update of ”branch/tip-757-obj-special”
Login

Update of ”branch/tip-757-obj-special”

Overview

Artifact ID: b6a6d25a4fbf889cce1acc2f8f5d946e739140e8f97acf87f877f4b6e3f0e903
Page Name:branch/tip-757-obj-special
Date: 2026-07-05 15:17:52
Original User: dkf
Mimetype:text/x-markdown
Content

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!