perfect :), thanks :)<br><br><div class="gmail_quote">On 3 October 2010 13:39, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.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">On Sunday 03 October 2010 04:34:31 Emil Madsen wrote:<br>
> can the enum be a float? if calcprimes returned a float? - and if so, will<br>
> the enum be a float or an int? (will it be casted, or will it work as an<br>
> auto type?)<br>
<br>
<br>
</div>auto, enum, immutable, and const all use type inference. So, you can declare<br>
<br>
auto a = 7;<br>
enum b = 7.7;<br>
immutable c = "hello";<br>
const d = false;<br>
<br>
enum, however, is the only one which is a compile-time constant.<br>
<font color="#888888"><br>
- Jonathan M Davis<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>// Yours sincerely<br>// Emil 'Skeen' Madsen<br>