Artifacts Associated With Ticket 3041099fffffffffffffffffffffffffffffffff
Ticket change [2fff2ce398] (rid 93168) by tombert on 2010-08-07 09:26:43:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Create a dictionary > set mydict [dict create -range {-values {a b c} -base k}] -range {-values {a b c} -base k} Manipulate dictionary the correct way: > dict set mydict -range -base M -range {-values {a b c} -base M} Manipulate dictionary the wrong way: > dict set $mydict1 -range -base M -range {-base M} In my point of view there should be a check throwing an error when doing it the "wrong way". Regards thomas - foundin initialized to: "obsolete: 8.5.8"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tombert"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "dict variable check missing?"
- type initialized to: "Bug"
Ticket change [e79dc2d279] (rid 104494) by ferrieux on 2010-08-07 16:35:01:
- closedate changed to: "2010-08-07T09:35:01"
- closer changed to: "ferrieux"
- 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
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "ferrieux"