Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be0e116a8ed54e680b5a38615ca93bab2f75a963
Ticket: cb042d294ec00c41ecf0aa77a8e050183cd9ac6a
[dict] "wrong # args" error inconsistencies
User & Date: andy on 2014-05-21 23:56:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    % dict append
    wrong # args: should be "dict append varName key ?value ...?"
    % dict incr
    wrong # args: should be "dict incr varName key ?increment?"
    % dict lappend
    wrong # args: should be "dict lappend varName key ?value ...?"
    % dict set
    wrong # args: should be "dict set varName key ?key ...? value"
    % dict unset
    wrong # args: should be "dict unset varName key ?key ...?"
    % dict update
    wrong # args: should be "dict update varName key varName ?key varName ...? script"
    % dict with
    wrong # args: should be "dict with dictVar ?key ...? script"
    
    [dict with] is clearly the odd man out, being the only command to say "dictVar" instead of "varName".  It must be following the example of [dict for] and [dict map] which also say "somethingVar" (and should probably say "somethingVarName"):
    
    % dict for
    wrong # args: should be "dict for {keyVar valueVar} dictionary script"
    % dict map
    wrong # args: should be "dict map {keyVar valueVar} dictionary script"
    
    Back to [dict update].  It says "varName" multiple times.  I suggest changing all but the first instance to "valueVarName".
    
    wrong # args: should be "dict update varName key varName ?key varName ...? script"
    
  5. foundin changed to: "cdc4e05235717e4959d745e4cc6670bd1333c783"
  6. is_private changed to: "0"
  7. login: "andy"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "662c23482b0bf6a505f39e48fb7ad43af8dee4d3"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "andy"
  14. subsystem changed to: "15. Dict Object"
  15. title changed to: "[dict] "wrong # args" error inconsistencies"
  16. type changed to: "Bug"