Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 232d0e1c1532cc2ab3fdc84421ec3cf0ba0c1911
Ticket: 3551813fffffffffffffffffffffffffffffffff
Use @ to report offset in [binary scan]
User & Date: avl42 on 2012-12-08 22:51:51
Changes

  1. icomment:
    The difference between "@ 42" and "p 42":  "@..."  with a count requires only a value argument (namely the count), not a variable name. If a blank crept into it, it would merrily treat some value argument as a variable and write a value into it, before it stumbles over the numeric literal and throws an error. At the time of error thrown, some random variable is already overwritten.  With "p 42", also an error would be thrown, but p would at least be given a variable name, to which a sane value is written, before the error get thrown on hitting blank 42.
    
    That's my reason. If it is entirely unconvincing for you, then so be it. I'd consider the feature added your way with only @ to be still an improvement over current state, but I do think that using a new "p" is still better.
    
    
  2. login: "avl42"
  3. mimetype: "text/plain"
  4. username: "avl42"