Skip to content
Tcl Source Code History Of Ticket 2368084
Login

History Of Ticket 2368084

Artifacts Associated With Ticket 2368084

  1. Ticket change [367aed09ca] (rid 107110) by ferrieux on 2008-12-01 00:54:21:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "ferrieux"
    10. subsystem initialized to: "23. [scan]"
    11. title initialized to: "Add %b (binary) specifier to [format/scan]"
    12. type initialized to: "Patch"
  2. Add attachment "bin.patch" [c68b119b3a] (rid 121787) by ferrieux on 2008-12-01 07:54:21.

  3. Ticket change [235ecdf662] (rid 130915) by ferrieux on 2008-12-01 07:54:21:

    1. icomment:
      
      
      File Added - 303554: bin.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [0651811640] (rid 89204) by dkf on 2008-12-08 18:03:52:

    1. foundin changed to: "TIP Implementation"
    2. title changed to: "#343: Add %b (binary) specifier to [format/scan]"
  5. Add attachment "bin2.patch" [80ccbff32c] (rid 116929) by ferrieux on 2008-12-09 04:19:35.

  6. Ticket change [922c112e68] (rid 120732) by ferrieux on 2008-12-09 04:19:35:

    1. icomment:
      
      
      File Added - 304588: bin2.patch
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [1c778f3e35] (rid 90608) by ferrieux on 2008-12-09 04:19:36:

    1. icomment:
      After discussion with Don, it appears that the [scan %i] "fix", which is orthogonal to the TIP, is a dangerous breach of compatibility. So let's leave octal in its pond for now. Patch updated to restore the aforementioned bug. Now this patch is 100% faithful to the TIP's text.
      File Added: bin2.patch
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [be9b3e3fe4] (rid 102099) by ferrieux on 2008-12-09 04:21:45:

    1. icomment:
      The mention of "octal" in the previous comment is confusing. I meant, let's just leave %i in all its historical ugliness (which includes things related to octal). Anyway.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  9. Ticket change [efffc38d07] (rid 109097) by ferrieux on 2008-12-12 06:36:38:

    1. closedate changed to: "2008-12-11T23:36:38"
    2. closer changed to: "ferrieux"
    3. icomment:
      TIP accepted, patch committed.
      
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "ferrieux"