Artifacts Associated With Ticket 218326
Ticket change [9021b40754] (rid 120395) by nobody on 2000-10-26 00:56:15:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 3869 RFE Version: 8.0.3 SubmitDate: '1999-12-13' LastModified: '1999-12-15' Severity: LOW Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Linux-Red Hat OSVersion: RedHat 5.2 i386 Machine: AMD K6-350 MHz FixedDate: '2000-10-25' ClosedDate: '1999-12-15' Name: Constantin Teodorescu Extensions: Tcl 8.0.3 DesiredBehavior: It would be nice if we could assign the values from a small list to a list of variables: set mylist [list Teo 35 Braila Romania] lmap $mylist name age city country "lmap" (list map) will be the new command. I know that there is a "lassign" command in TclX but I would like to find it also in pure Tcl. For the moment I'm using: foreach {name age city country} $mylist {} but it's less elegant. lassign can be made in pure Tcl, as noted on the newsgroup. We are considering a new ::listx metacommand for 8.3/4. -- 12/15/1999 hobbs - foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Quick mapping of a small list to variables"
- type initialized to: "RFE"
Ticket change [ca89d7c438] (rid 95368) by welch on 2000-10-26 08:20:06:
- closedate changed to: "2000-10-26T01:20:06"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a78ede0c8d] (rid 98823) by dgp on 2001-04-16 22:49:51:
- foundin changed to: "None"
- status changed to: "Open"
- subsystem changed to: "None"
Ticket change [724dbc46c4] (rid 100832) by dgp on 2001-04-16 22:50:26:
- subsystem changed to: "- New Builtin Commands"
Ticket change [89675ec82d] (rid 132018) by andreas_kupries on 2001-09-18 01:22:37:
- icomment:
Logged In: YES user_id=75003 Also see TIP 57 and 58 (http://www.purl.org/tcl/tip/57.html, http://www.purl.org/tcl/tip/58.html)
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [7ccd453d6f] (rid 97139) by dgp on 2003-11-13 06:15:22:
- assignee changed to: "dkf"
Ticket change [27238b5683] (rid 88469) by dkf on 2004-06-16 03:49:19:
- closedate changed to: "2004-06-15T20:49:19"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Tcl 8.5 includes an 'lassign' command with *exactly* the syntax and semantics of the TclX version.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dkf"