Skip to content
Tcl Source Code Timeline
Login

Timeline

TIP 757: Functions for Generating a Result String

The aim is to reduce the amount of visual noise from Tcl_ObjPrintf() calls when generating error messages.

Adds:

  • void Tcl_PrintResult(Tcl_Interp *interp, const char *format, ...);
  • void Tcl_AppendPrintResult(Tcl_Interp *interp, const char *format, ...);
  • void Tcl_AppendPrintToErrorInfo(Tcl_Interp *interp, const char *format, ...);

Semantics are intended to be obvious.

Derived experiments

26 check-ins related to "tip-757"
2026-10-12
08:02
merge trunk leaf check-in: 46ed7bcfe7 user: dkf tags: tip-757
07:50
Add documentation check-in: dac53b7604 user: dkf tags: tip-757
07:44
merge trunk check-in: 9be0a256bb user: dkf tags: tip-757
2026-10-11
21:06
Fix [3595762fff]: lsearch -regexp released the pattern when matching failed check-in: cd129688d2 user: jan.nijtmans tags: trunk, main
2026-10-08
09:29
merge: gahr-dual-stack-tests check-in: e55edf971f user: gahr tags: trunk, main
2026-10-02
07:53
Remove another call to Tcl_ObjPrintf from a non-error path check-in: 0f48b483e5 user: dkf tags: tip-757
2026-10-01
20:26
Fix some more places, removing Tcl_ObjPrintf from some sites where it wasn't used for errors check-in: 0d10757198 user: dkf tags: tip-757
08:23
A few more places updated to use Tcl_PrintfResult check-in: c2be6a9787 user: dkf tags: tip-757
08:07
merge trunk check-in: a548a818ba user: dkf tags: tip-757
2026-09-29
16:43
merge release check-in: a1f9374876 user: dgp tags: trunk, main
2026-08-23
11:04
Error string compaction check-in: 88c80c8187 user: dkf tags: tip-757
2026-08-15
14:56
More errors through the new API functions check-in: b4ed13ac7d user: dkf tags: tip-757
08:16
merge trunk check-in: 231777b7dc user: dkf tags: tip-757
2026-08-14
06:52
A few more places where we can use faster string concatenation. Makes the code a little less clear. check-in: 810909b367 user: dkf tags: trunk, main
2026-08-09
11:41
merge trunk check-in: d54b3787e4 user: dkf tags: tip-757
11:38
Error messages almost all generated via Tcl_PrintfResult family check-in: 4b4b6ea188 user: dkf tags: tip-757
2026-08-02
08:11
Fix [6e82720e] - BUFFER_PADDING panic on 4294967296 chars read check-in: 5a2face991 user: apnadkarni tags: trunk, main
2026-07-18
08:10
Add Tcl_AppendPrintfToErrorInfo to our set of printers check-in: a65eb900f8 user: dkf tags: tip-757
2026-07-17
06:50
Use of TIP 757 in many places leaf check-in: 2237c55faf user: dkf tags: tip-757-use
2026-07-10
07:13
No, better to always generate a new object; simplifies lifetime management elsewhere check-in: 5c7a9acf54 user: dkf tags: tip-757
2026-07-05
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
10:46
Avoid allocating an object in a common case. check-in: be9d036e69 user: dkf tags: tip-757
2026-07-04
22:00
Switch TclOO over to using Tcl_PrintfResult as test and demo check-in: 44ceac0276 user: dkf tags: tip-757
20:47
First draft of implementation of TIP 757. Not yet its consequences. check-in: 7ba8fb7d94 user: dkf tags: tip-757
2026-06-30
15:44
Version -> 9.1b1 for next release cycle check-in: ae9af05d16 user: jan.nijtmans tags: trunk, main