Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: bd51c403c58c7381a1ae396c2684bfd95f16ed32
Ticket: 58eb8d4e84c56705e6cec11f89a79f995ec53680
Boolean type and a bug
User & Date: anonymous 2015-04-16 06:26:18
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    It would be interesting to add the boolean type to huddle. Specially for converting huddle objects to json.
    
    Also inside the procedure "::huddle::_dict_setting", I think that the subcommand "create" is wrong:
    
    "
            create { ; # $args: all arguments after "huddle create"
                if {[llength $args] % 2} {error {wrong # args: should be "huddle create ?key value ...?"}}
                set resultL {}
                foreach {key value} $args {
                    lappend resultL $key [huddle to_node $value]
                }
                return [huddle wrap D $resultL]
            }
    "
    
    I would replace lappend with "dict set":
    "            if {[llength $args] % 2} {error {wrong # args: should be "huddle create ?key value ...?"}}
                set resultL {}
                foreach {key value} $args {
                    dict set resultL $key [huddle to_node $value]
                }
                return [huddle wrap D $resultL]
            }
    "
    
  5. is_private changed to: "0"
  6. login: "anonymous"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "huddle"
  14. title changed to: "Boolean type and a bug"
  15. type changed to: "Bug"