Tcl Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: 1671880
Title: [lassign] syntax
Type: RFE Version: None
Submitter: dgp Created on: 2007-03-01 17:25:32
Subsystem: 17. Commands I-L Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-10-24 01:15:39
Resolution: Accepted Closed By: dgp
    Closed on: 2008-10-23 18:15:39
[lassign] currently requires
at least one varName argument.

The [lassign] operation is perfectly
well-defined for the zero varNames
case.  Allowing that would also permit

  lassign $list {}$varNameList

without the need to protect against
a possibly empty list in $varNameList.
User Comments: dgp added on 2008-10-24 01:15:39:
part of TIP 323