Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c664b20cbaf79e124b2dc5addfc6d1c1fc2e4785
Ticket: 218126ffffffffffffffffffffffffffffffffff
support for multivariable set
User & Date: nobody on 2000-10-26 00:53:27
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1984 RFE
    Version: 8.0.5
    SubmitDate: '1999-05-04'
    LastModified: '1999-08-06'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: SunOS
    OSVersion: 2.6
    Machine: Sparc
    FixedDate: '2000-10-25'
    ClosedDate: '1999-08-06'
    
    
    Name:
    Paulo Dutra
    
    DesiredBehavior:
    In Perl, I can short cut this to
        
        ($device, $package, $speed) = split(/-/, $part_type);
        
        I would like this extended to Tcl as 
        
        set {device package speed} [split $part_type -]
    
    
    
    That would be:
        foreach {device package speed} [split $part_type -] {break}
    
    The break ensures that if the split produces more than 3 items,
    we only get the first three. 
    -- 08/06/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: "support for multivariable set"
  11. type changed to: "RFE"