Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b24650be4c2b19f2900f465261ebbe951b61c55
Ticket: 1037235fffffffffffffffffffffffffffffffff
Inconsistency in 'dict set'
User & Date: muehlebachs on 2004-09-29 19:36:48
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The goal is to create a nested dictionary (foo) with
    the following mappings:
    
        a -> A
        bc -> b -> B
        bc -> c -> C
    
    One would expect to do it by:
    
        dict set foo a A
        dict set foo bc b B
        dict set foo bc c C
    
    But this leads to the error (key "bc" not known in
    dictionary). Instead it has to be done by:
    
        dict set foo a A
        dict set foo bc [dict create b B c C]
    
    After the mappings are created, the values can be
    changed by:
    
        dict set foo a AA
        dict set foo bc b BB
        dict set foo bc c CC
    
    The different treatment of mappings at the 'top level'
    and at a 'lower level' should either be
    removed/corrected or mentioned in the docu.
    
    
  4. foundin changed to: "obsolete: 8.5a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "muehlebachs"
  9. subsystem changed to: "15. Dict Object"
  10. title changed to: "Inconsistency in 'dict set'"
  11. type changed to: "Bug"