Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e79dc2d2794da45d5e981a4f44988dfb217b0766
Ticket: 3041099fffffffffffffffffffffffffffffffff
dict variable check missing?
User & Date: ferrieux on 2010-08-07 16:35:01
Changes

  1. closedate changed to: "2010-08-07T09:35:01"
  2. closer changed to: "ferrieux"
  3. icomment:
    In Tcl, everything is a string, and just about every string is a valid variable name.
    So, whatever $mydict1 is at the time, it is nevertheless a potential varname, that can legally hold the dict value you're creating with [dict set]. The fact that it contains spaces, which is likely if it's also a dict value, doesn't allow the Tcl runtime to dismiss it:
    
       dict set "foo bar" a b
    
       set "foo bar"
       -> a b
    
       dict get [set "foo bar"] a
       -> b
    
    
    
  4. login: "ferrieux"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "ferrieux"