Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c999e4dca64918d126005dde499e7285092faa04
Ticket: 0363f0146cb1f0fa152c7d853ea1788b851dacce
array search commands fail to recognize all names for variable
User & Date: dgp on 2016-07-19 17:17:27
Changes

  1. icomment:
    % array set foo {1 2 3 4 5 6}
    % set as1 [array startsearch foo]
    s-1-foo
    % namespace eval n {
    variable foo
    array set foo {a b c d e f}
    set ::as2 [array startsearch foo]
    }
    s-1-foo
    
    At this point $::as1 and $::as2 hold
    identical string values.  They are interchangeable
    as identifiers of both searches, which implies
    they are not unique identifiers of either search.
    
  2. login: "dgp"
  3. mimetype: "text/plain"