Variable substitution in a list in Tcl
<p>I am trying to substitute a variable in a list:</p>

<pre><code>% set a 1  
1  
% set b {1 $a}  
1 $a  
%  
% set a 1  
1  
% set b [list 1 $a]  
1 1  
</code></pre>

<p>When I use the curly braces <code>{}</code>, to define the list the variable 'a' doesn't get substituted with its value but in case of using <code>list</code> it does.</p>

<p>How do I substitute a variable's value when using a list defined with <code>{}</code>?</p>