Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d7006d5bff9f65fb959258804febe1a5dfcaf11b
Ticket: 1445454fffffffffffffffffffffffffffffffff
incr on undefined array fails in procedures
User & Date: msofer on 2006-03-08 16:58:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Note that the problem is the non-existing array, and not the
    non-existing component:
    
    % proc x {} {incr a(1)}
    % proc y {} {set a(2) 1; incr a(1)}
    % x
    can't read "a(1)": no such variable
    % y
    1
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"