Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4c023bfba7fdb8443eec690cfc1eb9cfac70af1258df4f6527e594f46c294617
Ticket: 6ee2f5d5d6bc7d697b735f5389d833ff9e61e217
Tcl 9.0 "invalid character in array index" error for $a("b")
User & Date: avl42 on 2026-07-30 15:23:05
Changes

  1. closedate changed to: "2461252.1410410646"
  2. closer changed to: "avl42"
  3. icomment:
    Hello again...
    
    The syntax for ${...} is still VERY odd, and that wasn't
    addressed/changed in that TIP, because it didn't cross the
    plans for assignment in expr.  It is still as odd as it
    was in 8.x, and it only becomes more odd, if you have
     puts ${\}  inside a braced block... try it... you'll be in
    for some surprises, if you even try, unless you have really
    really really understood the dodekalogue of Tcl syntax. ;-)
    
    Regarding
    set a(\) x
    then the "set" command only sees "a()" and "x" as its arguments,
    and never even saw the backslash there.
    
  4. login: "avl42"
  5. mimetype: "text/plain"