Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dd0d6dfbeb5fe32e6f0be73ac922f15edde76d607dcf341a20ee5a466a3148cf
Ticket: af4780b0b5245f035803b5fbeb1cfae62f40f821
Improve format #d documentation
User & Date: jan.nijtmans on 2025-09-03 13:50:52
Changes

  1. icomment:
    This was specified in TIP #476 as follows:
    
    >Adapt the %#d modifier. The prefix "0d" is only produced when there is a width field and the formatted number is not 0, i.e. when there is possible confusion with an octal number. Since in Tcl 9.0 octal numbers with "0" prefix will be gone, "#" will not produce the decimal prefix any more.
    
    The idea was, for Tcl 8.7, to keep maximum compatibility with 8.6. For Tcl 9.0, the idea was to never output "0d" any more, for maximum compatibility with "C".  Apparently, the behavior in Tcl 9.0 was never adapted as described in this TIP; it's still the same as in (never released) 8.7.
    
    Since 9.0 is released now, I think we should keep it as it is now....
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"