Artifacts Associated With Ticket 2368084
Ticket change [367aed09ca] (rid 107110) by ferrieux on 2008-12-01 00:54:21:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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 ? - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "ferrieux"
- subsystem initialized to: "23. [scan]"
- title initialized to: "Add %b (binary) specifier to [format/scan]"
- type initialized to: "Patch"
Add attachment "bin.patch" [c68b119b3a] (rid 121787) by ferrieux on 2008-12-01 07:54:21.
Ticket change [235ecdf662] (rid 130915) by ferrieux on 2008-12-01 07:54:21:
- icomment:
File Added - 303554: bin.patch
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [0651811640] (rid 89204) by dkf on 2008-12-08 18:03:52:
- foundin changed to: "TIP Implementation"
- title changed to: "#343: Add %b (binary) specifier to [format/scan]"
Add attachment "bin2.patch" [80ccbff32c] (rid 116929) by ferrieux on 2008-12-09 04:19:35.
Ticket change [922c112e68] (rid 120732) by ferrieux on 2008-12-09 04:19:35:
- icomment:
File Added - 304588: bin2.patch
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [1c778f3e35] (rid 90608) by ferrieux on 2008-12-09 04:19:36:
- 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
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [be9b3e3fe4] (rid 102099) by ferrieux on 2008-12-09 04:21:45:
- 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.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [efffc38d07] (rid 109097) by ferrieux on 2008-12-12 06:36:38:
- closedate changed to: "2008-12-11T23:36:38"
- closer changed to: "ferrieux"
- icomment:
TIP accepted, patch committed.
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "ferrieux"