Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b5e6c1f61159e4a957568303def5d9ca775d0964
Ticket: 1570718fffffffffffffffffffffffffffffffff
lappend undocumented behavior
User & Date: lvirden on 2006-10-04 14:23:00
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % info patchlevel
    8.5a5
    % set a {"}
    "
    % llength $a
    unmatched open quote in list
    
    So far, just as expected.
    
    % lappend a "abc"
    unmatched open quote in list
    
    Good
    
    % lappend a
    "
    
    Whoops! Should have been an error here, shouldn't there?
    Maybe it's returning a list?
    
    % set b [lappend a]
    "
    % llength $b
    unmatched open quote in list
    
    Here's what bugs me - the l commands should only be
    returning a list.
    
    If lappend wants to return the string $a listified, I
    could live with that.  But returning a non-list seems
    unexpected to me, and at the very least should be
    documented...
    
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lvirden"
  10. subsystem changed to: "17. Commands I-L"
  11. title changed to: "lappend undocumented behavior"
  12. type changed to: "Bug"