Overview
| Artifact ID: | 3a53142f5abaf27cd4c90c8344e61277d5227dd5d600ee41c439d3e29890f149 |
|---|---|
| Ticket: | 3551813fffffffffffffffffffffffffffffffff
Use @ to report offset in [binary scan] |
| User & Date: | q3cpma on 2021-04-10 10:36:30 |
Changes
- closer changed to: "nobody"
- comment changed to:
Currently, using @ without an index in [binary scan] is an error. The [binary scan] implementation can be easily modified to allow an @ without an index to report the 'current' offset, storing it in a variable, like with other format specifiers. This makes it easier to track the offset; it must currently be done manually. Attached is a patch for the code and a patch for some tests, for Tcl 8.5.12. If this is 'approved' then I'll write more tests, adjust the documentation and submit new patches.
- icomment:
After making a patch using '>' instead of 'p' (as this match the use of a symbol for '@' better, in my opinion), I just noticed the existence of this TIP. Any updates on this?
- login: "q3cpma"
- mimetype: "text/plain"
- severity changed to: "Minor"