Simen kjaeraas wrote:
> Jérôme M. Berger <[email protected]> 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:[email protected]
http://jeberger.free.fr
Jabber: [email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to