Am I doing it wrong?

"Jérôme M. Berger" jeberger at free.fr
Mon Oct 4 11:33:14 PDT 2010


Simen kjaeraas wrote:
> Jérôme M. Berger <jeberger at free.fr> wrote:
> 
>> 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).
> 
> Or, you know, just "compile-time const", as the lack of a specified type,
> and const being a storage class, allows for type inference. Auto is not
> necessary.
> 
	I know, but since the question was "can the enum be a float?", I
felt it necessary to put the redundant "auto" in my explanation.

		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/20101004/ac15effc/attachment.pgp>


More information about the Digitalmars-d mailing list