Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7851f340cc9089fa911499bb82ab495b6867da4
Ticket: 852e7c15949ef7b6ccd66f876b6919a4be00e3bf
append(3tcl) on new variable without ?values?
User & Date: Konrad.Schwarz on 2016-03-01 08:18:14
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    append(3tcl) has the following synopsis: append varName ?value value ...?
    The man states, "If varName does not exist, it is given a value equal to
    the concatentation of all the value arguments."  However, if x is not a variable,
        append x
    results in 
        can't read "x": no such variable
    
    I would expect x to be assigned to an empty string.
    
    Contrast this to
        lappend l
    which sets l to an empty list, or
        incr i 0
    which sets i to zero (as of TCL 8.5).
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "Konrad.Schwarz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "84ce129551eef457f1a72bb5f5056848655b5691"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "Konrad.Schwarz"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "append(3tcl) on new variable without ?values?"
  16. type changed to: "RFE"