Tcl Source Code

View Ticket
Login
Ticket UUID: 1671880
Title: [lassign] syntax
Type: RFE Created on: 2007-03-01 17:25:32
Submitter: dgp Assigned to: dgp
Subsystem: 17. Commands I-L Severity:
Priority: 5 Medium Last modified: 2008-10-24 01:15:39
Status: Closed Closed by: dgp
Resolution: Accepted Closed on: 2008-10-23 18:15:39
Version: None
Description:
[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