Skip to content
Tcl Source Code History Of Ticket 3475264
Login

History Of Ticket 3475264

Artifacts Associated With Ticket 3475264

  1. Ticket change [b74e5825fa] (rid 125567) by blacksqr on 2012-01-18 06:32:07:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % dict set tst a b c d
      a {b {c d}}
      % dict exists $tst a b c
      1
      % dict exists $tst a b c d
      missing value to go with key
      
      The last command throws an error; since d is a value not a key, I expected simply to get a return value of "0".
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "blacksqr"
    10. subsystem initialized to: "15. Dict Object"
    11. title initialized to:
      "dict exists" throws error when key path ends in value
      
    12. type initialized to: "Bug"
  2. Ticket change [a38aefec8a] (rid 110060) by blacksqr on 2012-01-18 13:49:17:

    1. icomment:
      from chat: 
      
      [00:12]SEHlooking for some wisdom on dicts
      [00:12]SEH% dict set tst a b c d
      [00:13]SEHa {b {c d}}
      [00:14]SEH% dict exists $tst a b c d
      [00:14]SEHget error; missing value to go with key
      [00:14]SEHexpected simply to get "0"
      [00:14]SEHbug?
      [00:16]venksSEH - exists is for a key
      [00:16]SEHright, but since d is not a key I expected to get "0", not an error
      [00:16]venksah.
      [00:17]   * venks goes to check on his
      [00:21]apnLooks like a bug to me
      [00:22]venksyep - is a booooog.
      
      
    2. login: "blacksqr"
    3. mimetype: "text/plain"
    4. username: "blacksqr"
  3. Ticket change [b4c9549b9c] (rid 125102) by dkf on 2012-01-22 20:18:12:

    1. closedate changed to: "2012-01-22T13:18:12"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      The one problem with this is that it makes it harder to know when you've done something silly like going too deep in a dictionary. Still, I buy the point that based on the current documentation it should not be throwing errors.
      
      Fixed for 8.5 and 8.6
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"