ah ofc! I shoulda know :) - So I were doing it wrong :) Say I'm doing that enum a = calcPrimes(); then a will be an enum with 1 element, that I can use as an int right? - or is there something special to be aware of?
On 3 October 2010 13:20, Torarin <[email protected]> wrote: > 2010/10/3 Emil Madsen <[email protected]>: > > Well the result is assigned to an immutable int, shouldn't that be a > compile > > const too? > > Immutable means that the variable, or the memory it points to, will > not change. You can still assign run-time values to it: > void main(string[] args) > { > immutable string a = args[0]; > writeln(a); > } > -- // Yours sincerely // Emil 'Skeen' Madsen
