can the enum be a float? if calcprimes returned a float? - and if so, will the enum be a float or an int? (will it be casted, or will it work as an auto type?)
thanks btw :) On 3 October 2010 13:28, Torarin <[email protected]> wrote: > 2010/10/3 Emil Madsen <[email protected]>: > > 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? > > Yes, effectively you are declaring an anonymous enum with one element. > By default an int. > -- // Yours sincerely // Emil 'Skeen' Madsen
