Am I doing it wrong?

Emil Madsen sovende at gmail.com
Sun Oct 3 04:34:31 PDT 2010


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 <torarind at gmail.com> wrote:

> 2010/10/3 Emil Madsen <sovende at gmail.com>:
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101003/208544a9/attachment.html>


More information about the Digitalmars-d mailing list