Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 032ff2d84704ea25aa33dbf77e14b594efc6caad
Ticket: 3551813fffffffffffffffffffffffffffffffff
Use @ to report offset in [binary scan]
User & Date: stwo on 2012-07-30 05:51:05
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "4"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "stwo"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "Use @ to report offset in [binary scan]"
  12. type changed to: "RFE"