Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8289b2c4677cfe0b9f461a9809b66884042fb025
Ticket: 2481670fffffffffffffffffffffffffffffffff
[clock add] error
User & Date: talvo on 2009-01-02 01:25:37
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The code for the [clock add] command (in [tcl::clock::add]) eferences a variable by the wrong name when it tries to throw an error for an incorrect flag. For example:
    
    clock add 1231862400 1 year -foo bar
    
    can't read "flag": no such variable
        while executing
    "list CLOCK badSwitch $flag"
        (procedure "::tcl::clock::add" line 37)
        invoked from within
    "clock add 1231862400 1 year -foo bar"
    
    The problem is about 37 lines into tcl::clock::add - in the line
    
    return -code error  -errorcode [list CLOCK badSwitch $flag]  "bad switch \"$flag\", must be -gmt, -locale or -timezone"
    
    both instances of $flag should be $a. From http://wiki.tcl.tk/22183
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "talvo"
  10. subsystem changed to: "None"
  11. title changed to: "[clock add] error"
  12. type changed to: "Support"