Re: Dynamic variables and lists



ssriperu1@xxxxxxxxx writes:

> power
> % set ${a} [list a b c d]

so you set the variable power to a list

> a b c d
> % set second [lindex ${a} 1]

and try to look up the second list item in the string "power".

> % set second [lindex eval ${$a} 1]
> can't read "$a": no such variable

http://wiki.tcl.tk/8662


--
Donald Arseneau asnd@xxxxxxxxx
.



Relevant Pages

  • bridgeport table power feed
    ... Anyone considering an add on table power feed should consider "servo" brand. ... I have a "turbo" model that is great. ... Much more than just variable power ... rapiding out to a set point, indexing, then plunging again. ...
    (alt.machines.cnc)
  • bridgeport table power feed
    ... Anyone considering an add on table power feed should consider "servo" brand. ... I have a "turbo" model that is great. ... Much more than just variable power ... rapiding out to a set point, indexing, then plunging again. ...
    (rec.crafts.metalworking)
  • Re: Determine CD-ROM drive letter
    ... the device is known to be in a power save mode, ... Capabilities of the media access device. ... CapabilityDescriptions array (string) ... Algorithm or tool used by the device to support compression. ...
    (microsoft.public.vb.winapi)
  • Re: Determine CD-ROM drive letter
    ... the device is known to be in a power save mode, ... Capabilities of the media access device. ... CapabilityDescriptions array (string) ... Algorithm or tool used by the device to support compression. ...
    (microsoft.public.vb.winapi)
  • Re: IOCTL_POWER_XXX method calls
    ... certainly declare them unsafe as a Char*, ... might even work, since they're just string pointers, not embedded strings ... has two power states, A/C power running at full speed, and off. ... // in the managed array of bytes. ...
    (microsoft.public.dotnet.framework.compactframework)