Re: How to set the following style array??
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: How to set the following style array??

From: suchenwi <richard.suchenwirth-bauersachs@siemens.com>
Date: Mon Feb 27 2006 - 10:23:02 CET

Arrays in Tcl are collections of variables, each mapping a string to a
string they can't be nested. In your case, nested lists may be more
appropriate (but I don't know how SWIG acts there).

For your second question, look at this interactive session snippet:
44 % array set a { 0 mm 2 nn 3 kk}
19 % set a(0)
mm
26 % set a(2)
nn
20 % set a(3)
kk
Received on Sun Apr 30 02:16:40 2006