Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae67dbf9e965ee38ff09d0f225880df01367fa65
Ticket: 218320ffffffffffffffffffffffffffffffffff
output of "parray"
User & Date: nobody on 2000-10-26 00:56:08
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3824 Bug
    Version: 8.0.5
    SubmitDate: '1999-12-08'
    LastModified: '1999-12-08'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows 98
    OSVersion: Microsoft Windows 98 4.10.1998
    Machine: Dell Machine
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-08'
    
    
    Name:
    
    Toru Tsuneyoshi
    
    
    
    ReproducibleScript:
    
    % set L(1) a ; set L(2) b ; set L(3) c
    
    % puts "parray L -> \n[parray L]"
    
    
    
    ObservedBehavior:
    
    L(1) = a
    
    L(2) = b
    
    L(3) = c
    
    parray L ->
    
    
    
    ### The results shown are in reverse order.
    
    
    
    DesiredBehavior:
    
    parray L ->
    
    L(1) = a
    
    L(2) = b
    
    L(3) = c
    
    
    
    Patch:
    
    *** parray.tcl.oldWed Dec 08 13:11:38 1999
    
    --- parray.tcl.newWed Dec 08 13:37:16 1999
    
    ***************
    
    *** 24,29 ****
    
          set maxl [expr {$maxl + [string length $a] + 2}]
    
          foreach name [lsort [array names array $pattern]] {
    
      set nameString [format %s(%s) $a $name]
    
    ! puts stdout [format "%-*s = %s" $maxl $nameString $array($name)]
    
          }
    
      }
    
    --- 24,31 ----
    
          set maxl [expr {$maxl + [string length $a] + 2}]
    
          foreach name [lsort [array names array $pattern]] {
    
      set nameString [format %s(%s) $a $name]
    
    ! if {[info exists b]} {append b "\n"}
    
    ! append b [format "%-*s = %s" $maxl $nameString $array($name)]
    
          }
    
    +     return $b
    
      }
    
    
    
    PatchFiles:
    
    No files
    
    
    
    
    
    This breaks the defined behavior of parray, which is to use
    puts rather than return the data. 
    -- 12/08/1999 hobbs
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "output of "parray""
  11. type changed to: "RFE"