Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 344ebc638a72b209b8d12d19d1d8f970c8d03fe2
Ticket: 405084ffffffffffffffffffffffffffffffffff
Incompatibility in "trace" parameters
User & Date: petasis on 2001-03-02 13:42:29
Changes

  1. closedate changed to: "2001-03-02T06:42:29"
  2. closer changed to: "petasis"
  3. icomment:
    Logged In: YES 
    user_id=92283
    
    As Jeff Hobbs has pointed, "trace variable" has a different, older
    syntax and is deprecated...
    
    > According to the man page, "trace variable" is equivelant to
    > "trace add variable" ...
    
    Correct...
    
    > ... and should accept the same parameters, the ones
    > described in the man page.
    
    Buzz!  Not correct.  I do not see anywhere in the docs that the same
    params are accepted.  It in fact expressly notes in the docs that there
    is a distinct mapping:
    
      These subcommands are deprecated and will likely be removed in a future
      version of Tcl.  They use an older syntax in which array, read, write,
      unset are replaced by a, r, w and u respectively, and the ops argument
      is not a list, but simply a string concatenation of the operations,
      such as rwua.
    
    > ways *do not* accept the same arguments, with "trace variable" being more
    > powerful than "trace add variable". Is this a known bug?
    
    'trace add var' is the newer and more powerful syntax, as noted in
    the docs.
    
    
  4. login: "petasis"
  5. mimetype: "text/plain"
  6. status changed to: "Deleted"
  7. title changed to: "Incompatibility in "trace" parameters"
  8. username: "petasis"