Am I doing it wrong?

"Jérôme M. Berger" jeberger at free.fr
Sun Oct 3 11:08:27 PDT 2010


Emil Madsen wrote:
> 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?)
>  
	Yes, basically "enum" is a synonym for "compile-time const auto"
(although the "auto" part can be replaced by an explicit type).

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101003/4ee71960/attachment.pgp>


More information about the Digitalmars-d mailing list