<div>So I've been told, but havn't been able to find it, so I rechecked, and there it was, apperently I'm getting blind >.<<br></div><div>I'll make sure not to pollute this mailing list with these questions again then :) - Thanks once again</div>
<br><div class="gmail_quote">On 3 October 2010 23:28, Ali Çehreli <span dir="ltr"><<a href="mailto:acehreli@yahoo.com">acehreli@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Emil Madsen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ah ofc! I shoulda know :) - So I were doing it wrong :)<br>
</blockquote>
<br></div>
Thanks for the question; I learned something too. :)<br>
<br>
But in case you don't already know, there is also the D.learn newsgroup. This question might be more useful there.<br><font color="#888888">
<br>
Ali<br>
<br>
</font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Say I'm doing that enum a = calcPrimes();<br>
then a will be an enum with 1 element, that I can use as an int right?<br></div><div class="im">
- or is there something special to be aware of?<br>
<br></div><div><div class="h5">
On 3 October 2010 13:20, Torarin <<a href="mailto:torarind@gmail.com" target="_blank">torarind@gmail.com</a>> wrote:<br>
<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" target="_blank">sovende@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well the result is assigned to an immutable int, shouldn't that be a<br>
</blockquote>
compile<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
const too?<br>
</blockquote>
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>
<br>
</blockquote>
<br>
<br>
<br>
</div></div></blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>// Yours sincerely<br>// Emil 'Skeen' Madsen<br>