<div>ah ofc! I shoulda know :) - So I were doing it wrong :)<br></div><div>Say I'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"><<a href="mailto:torarind@gmail.com">torarind@gmail.com</a>></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 <<a href="mailto:sovende@gmail.com">sovende@gmail.com</a>>:<br>
<div class="im">> Well the result is assigned to an immutable int, shouldn't that be a compile<br>
> 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 'Skeen' Madsen<br>