title: TCL: Nested Associative Arrays
body: <p>Is it possible to do nested associative arrays in Tcl? I know I can use 'dict' in tcl8.5 or higher, but my code needs to run on tcl8.4.</p>
  
  <p>I'm looking to do this:</p>
  
  <pre><code>array set A {}
  array set tmp {...}
  array set tmp1 {...}
  array set A($foo) tmp
  array set A($foo1) tmp1
  </code></pre>
  
  <p>So foo/foo1 are keys and their values are associative arrays. In python, this would be like a dict of dicts.</p>
  
  <p>I am trying the above but tcl is complaining A($foo)/A($foo1) is not an array.</p>