Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 802113e2a932f4d4b2aca361fbf9311e0037bf23
Ticket: 2538432fffffffffffffffffffffffffffffffff
Tcl man page omits ${array(key)} syntax
User & Date: royterry on 2009-01-26 19:56:11
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The Tcl man page entry #8 Variable Subsitution says:
    ------------
    Variable substitution may take any of the following forms: 
    $name 
    Name is the name of a scalar variable; the name is a sequence of one or more characters that are a letter, digit, underscore, or namespace separators (two or more colons). 
    $name(index) 
    Name gives the name of an array variable and index gives the name of an element within that array. Name must contain only letters, digits, underscores, and namespace separators, and may be an empty string. Command substitutions, variable substitutions, and backslash substitutions are performed on the characters of index. 
    ${name} 
    Name is the name of a scalar variable. It may contain any characters whatsoever except for close braces.
    ----------------
    It is also legal to put a whole array reference in braces: ${array(xxx)}. I believe the man page leaves the opposite impression.  A second line showing an array element in braces would correct this misleading omission.
    
  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: "royterry"
  10. subsystem changed to: "69. Other"
  11. title changed to: "Tcl man page omits ${array(key)} syntax"
  12. type changed to: "Bug"