Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 192fc9eae59507b8e888d180d071fc9a88797389
Ticket: 472113ffffffffffffffffffffffffffffffffff
[namespace which -var] fails for ary(i)
User & Date: msofer on 2002-08-08 03:13:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    (1) Sorry, this bug somehow flew under my horizon :( 
    
    (2) It's not so clear to me what the correct fix would be:
    what should happen if the array itself exists, but the array
    element does not? In your script, what is the expected
    result of adding a line
       puts "4 - [namespace which -variable ary(k)]"
    According to the man page, the return should be "" - is this
    what you're expecting?
    
    (3) Depending on the answer to (2), a workaround involving
    [info exists] may be the solution for now.
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"