Overview
| Artifact ID: | 194409083fc37a7b01db459c85c5f49ee0def3c0 |
|---|---|
| Ticket: | 3fbaa4e23bfa711c4340a9a76cb7a8f71ef2f528
Tcl_ObjPrintf() does not accept Tcl_WideInt arguments |
| User & Date: | dgp on 2017-04-12 14:41:39 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
In all stable releases of Tcl since 8.5.0, there's been a Tcl_ObjPrintf() routine, but the set of specifiers supported includes no way to mark one of the variable arguments as having Tcl_WideInt size. This is noted in a code comment. /* TODO: support for wide (and bignum?) arguments */ At the time, all the sprintf() calls that were suitable for converting to the new Tcl_ObjPrintf() could be covered with long and int arguments. There's much more interest now in being able to pass Tcl_Wide(U)Int arguments, so we need to define and implement specifiers for that. Currently Tcl_ObjPrintf() and [format] have overlapping implementation, so that may bear on the best choices to avoid unwise overlapping functionality exposure. Note in particular that the "ll" modifier is already used in the [format] engine to indicate a signed argument of unlimited size (an mp_int). While we're enabling Tcl_WideInt arguments, it may make sense to deal with size_t arguments as well. I believe strongly these specifiers should be fully portable. This enhancement could go into 8.7 releases.
- foundin changed to: "8.7"
- is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "10. Objects"
- title changed to:
Tcl_ObjPrintf() does not accept Tcl_WideInt arguments
- type changed to: "RFE"