Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d851e105d93cacdbd8b01fa22a8f988ea3f1e750
Ticket: 218189ffffffffffffffffffffffffffffffffff
Proper error reporting of $:var
User & Date: nobody on 2000-10-26 00:54:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2358 Bug
    Version: 8.1.1
    SubmitDate: '1999-07-16'
    LastModified: '1999-09-15'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '1999-09-15'
    
    
    Name:
    Jeffrey Hobbs
    
    ReproducibleScript:
    (ssi) 68 % puts $:input
        $:input
        (ssi) 69 % puts $input
        can't read "input": no such variable
        (ssi) 70 % puts $::input
        can't read "::input": no such variable
    
    ObservedBehavior:
    With Tcl7.6, a var like $: $/ $^ (does this look like Perl or what?)
        was just ignored (not interp'd, just returned as is).  With namespaces
        in Tcl8, the interp of :: in vars changed.  However, when I write the
        above "bug", it doesn't consider it as a possible in 8.0 semantics,
        but rather just ignores it and returns the string.
    
    DesiredBehavior:
    With 8.0+, I would expect the above to have returned an error.
        It is a change from Tcl7, but so is the general treatment of ':'
        in a var.  Otherwise, it can lead to some tricky error (since it
        doesn't actually complain).
    
    
    
    This isn't necessary, just code better. 
    -- 09/15/1999 hobbs
    
  4. foundin changed to: "final: 8.1.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Proper error reporting of $:var"
  11. type changed to: "RFE"