Subject: Re: uplevel question - DN [1]
Alexandre Ferrieux <alexandre.ferrieux@cnet.francetelecom.fr> - 22 Apr 1999 - comp.lang.tcl
Tim Newsham wrote:
>
> I am trying to implement an 'mset' function, ie:
>
> mset {x y z} $l
>
> will:
>
> set x [lindex $l 0]
> set y [lindex $l 1]
> set z [lindex $l 2]
Others have answered your questions about quoting hell, uplevel and so
on. Now about the specific tool, are you aware of the following nifty
idiom:
foreach {x y z} $l break
A DN search (foreach break) should bring back the proper credit
information, along with an explanation if you need one.
-Alex
Last modified
1999-09-27
1999-09-27
(195.108.246.50)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
