<div>ah ofc! I shoulda know :) - So I were doing it wrong :)<br></div><div>Say I&#39;m doing that enum a = calcPrimes();</div><div>then a will be an enum with 1 element, that I can use as an int right?</div><div>- or is there something special to be aware of?</div>
<br><div class="gmail_quote">On 3 October 2010 13:20, Torarin <span dir="ltr">&lt;<a href="mailto:torarind@gmail.com">torarind@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/10/3 Emil Madsen &lt;<a href="mailto:sovende@gmail.com">sovende@gmail.com</a>&gt;:<br>
<div class="im">&gt; Well the result is assigned to an immutable int, shouldn&#39;t that be a compile<br>
&gt; const too?<br>
<br>
</div>Immutable means that the variable, or the memory it points to, will<br>
not change. You can still assign run-time values to it:<br>
void main(string[] args)<br>
{<br>
  immutable string a = args[0];<br>
  writeln(a);<br>
}<br>
</blockquote></div><br><br clear="all"><br>-- <br>// Yours sincerely<br>// Emil &#39;Skeen&#39; Madsen<br>