Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3a53142f5abaf27cd4c90c8344e61277d5227dd5d600ee41c439d3e29890f149
Ticket: 3551813fffffffffffffffffffffffffffffffff
Use @ to report offset in [binary scan]
User & Date: q3cpma on 2021-04-10 10:36:30
Changes

  1. closer changed to: "nobody"
  2. 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.
    
  3. 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?
    
  4. login: "q3cpma"
  5. mimetype: "text/plain"
  6. severity changed to: "Minor"