Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 21564b29703bf27d214aac0ffa7aee0b867926a1a93cab61ff4e5bbac7cf812a
Ticket: 47fd91176dd16609753b1a00ab3c46c3cc411765
Appending to a seven element dictonary causes issues
User & Date: mookie on 2025-01-15 19:37:09
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    I noticed this within NaviServer, but noticed it's also effecting TCL9, and prior.
    
    I'm not sure if this is by design, limited or programmed to, or that if you shouldn't be able to. 
    However I've started heavily using dictionaries within as a in-house data-store and taken it out of context of the standard dictionary key-value design.  
    
    On count, I am currently creating an dictionary of seven elements. 
    
      % dict set MyDictonary store set block key field 1 "hello"
    store {set {block {key {field {1 hello}}}}}
      % dict set MyDictonary store set block key field 2 "world"
    store {set {block {key {field {1 hello 2 hello}}}}}
    
    However, if I try to append another entry to this long dict, it scrambles itself.
    
      % dict append MyDictonary store set block key field 3 "hello world"
    store {set {block {key {field {1 hello 2 world}}}}setblockkeyfield3hello world}
    
    I have a klunky workaround as of retrieving the result, and then appending the new data which then setting that back to the dictionary but it doesn't feel right. 
    
    Am I suppose to be able to append, is this by design? If so, should it allow you to create a seven element dictionary when you cannot append?
    
    Many Thanks.
    
  5. foundin changed to: "9.x"
  6. is_private changed to: "0"
  7. login: "mookie"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "eb7513005aa11dbe2a07d8bff76f8af3c25f379b"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "mookie"
  14. subsystem changed to: "15. Dict Object"
  15. title changed to:
    Appending to a seven element dictonary causes issues
    
  16. type changed to: "Bug"