title: Tcl API how to get a list from Tcl
body: <p>Tcl 8.4</p>
  
  <p>In my Tcl script:</p>
  
  <pre><code>set foo1 false
  set foo2 "yes"
  set foo3 [list item1 item2 item3]
  </code></pre>
  
  <p>There's a API to get scalars like foo1 or foo2. Eg: <code>Tcl_GetVar(tcl_interp, string("foo1").c_str(), flags)</code>. I was wondering if there's any API to get list (like foo3) from Tcl?</p>