Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 367aed09caaf148404b9571281a1a99be5f36236
Ticket: 2368084fffffffffffffffffffffffffffffffff
#343: Add %b (binary) specifier to [format/scan]
User & Date: ferrieux on 2008-12-01 00:54:21
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The attached patch adds a %b specifier meaning 'binary' to the [format] and [scan] commands. It is thus continuing in the direction pioneered by the recent addition of "0b" in [expr]'s number parsing.
    
    The specifier of course also works with "#" (adding "0b" if nonzero) and wide- and bignum modifiers (%lb, %llb).
    
    In addition, the patch fixes the following bug in [scan]:
    
        % scan 0b101 %i x
        1
        % puts $x
        0
    
    The patch includes proper tests and documentation update. Does it really need a TIP ?
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "23. [scan]"
  11. title changed to: "Add %b (binary) specifier to [format/scan]"
  12. type changed to: "Patch"