Skip to content
Tcl Source Code History Of Ticket 2014921
Login

History Of Ticket 2014921

Artifacts Associated With Ticket 2014921

  1. Ticket change [c02aaae0b6] (rid 102361) by cjmcdonald on 2008-07-10 10:56:37:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Accessing a dict Tcl_Obj as a list loses the internal representations of all of the element Tcl_Objs.  This is because the list object is rebuilt in SetListFromAny from the dict string representation.
      
      In Tcl 8.5 "array get" has been modified to return a dict object.  A consequence of this is that the following code now loses all of the internal representations of the aname and avalue elements.
      
          # Process all array elements.
          
          foreach {aname avalue} [array get arrayVariable] {
          # Do something with $aname & $avalue.    
          }
          
      This is a very common idiom (at least in my code!), and corresponds to examples on the array man page and in various Tcl books.  So we have something of a performance regression from Tcl 8.4.
      
      The problem can be avoided by modifying all such usage to "dict for".  However, that is rather obscure, particularly as the array man page only talks about lists and not dicts.  I think that it would be good if SetListFromAny could recognise and process a dict object in such a way as to preserve the element Tcl_Objs.
      
    4. foundin initialized to: "obsolete: 8.5.3"
    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: "cjmcdonald"
    10. subsystem initialized to: "15. Dict Object"
    11. title initialized to:
      list from dict or "array get" loses internal representations
      
    12. type initialized to: "Bug"
  2. Ticket change [063d204e7c] (rid 89185) by dgp on 2008-07-11 00:01:26:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2008-07-10T17:01:26"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Looks like a duplicate of 2008248 ?
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Pending"
    9. username: "dgp"
  3. Ticket change [4de624ba7e] (rid 127135) by cjmcdonald on 2008-07-11 16:00:34:

    1. closedate changed to: "2008-07-11T09:00:34"
    2. closer changed to: "cjmcdonald"
    3. icomment:
      Logged In: YES 
      user_id=883691
      Originator: YES
      
      Yes, it is a duplicate of 2008248.  For some reason the sourceforge search won't work on my corporate pc/browser at work, which may be why I missed that one.
      
      
    4. login: "cjmcdonald"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "cjmcdonald"