Am I doing it wrong?

Torarin torarind at gmail.com
Sun Oct 3 04:28:09 PDT 2010


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.


More information about the Digitalmars-d mailing list