Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "10. Objects"
  14. title changed to:
    Tcl_ObjPrintf() does not accept Tcl_WideInt arguments
    
  15. type changed to: "RFE"