Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8521fe6f31501ae8bb260c1c062f2a4112966db4
Ticket: 405084ffffffffffffffffffffffffffffffffff
Incompatibility in "trace" parameters
User & Date: petasis on 2001-03-01 06:46:11
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Incompatibility between "trace add variable" and "trace variable".
    
    According to the "trace" manual, "trace variable" is equivelant to 
    "trace add variable". But:
    
    1) They don't give the same error messages.
    % trace variable
    wrong # args: should be "trace variable name ops command"
    % trace add variable
    wrong # args: should be "trace add variable name opList command"
    
    2) According to the manual, the following should work (and works):
    proc tracecall {name1 name2 op} {
      puts "name1=\"$name1\", name2=\"$name2\", op=\"$op\""
    }
    trace add variable x write tracecall
    set x 1
    
    > name1="x", name2="", op="write"
    
    But trying:
    
    trace variable y write tracecall
    > bad operations "write": should be one or more of rwua
    
    So, "trace variable" accepts only abbreviations?
    
    3) Finally, the manual info about "trace add variable" is incomplete, since
    it does not describe the operation "read" which exists and is referenced 
    in the descussion about the parameters passed to the "command" parameter
    of the "trace add variable".
    
  4. foundin changed to: "obsolete: 8.4a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "petasis"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "Incompatibility in "trace" parameters"
  11. type changed to: "Bug"