On Sat, May 31, 2014 at 10:14 PM, bearophile via Digitalmars-d-learn
<digitalmars-d-learn@puremagic.com> wrote:

>> In contrast to those two examples where immutable can be used at compile
>> time, what are some other cases where it is necessary to use enum instead
>> of immutable?
>
>
> By default use enum if you define a compile-time-known value (...)

Now that we have immutable's that can be used inside templates, why
use an enum? Because it's 'inlined' in the code?

(I know the reason not to use it for an array or associative array, I
experimented that fully in my own code. Ouch!)
    • Re: enums Andrej Mitrovic via Digitalmars-d-learn
      • Re: enums Miles Stoudenmire via Digitalmars-d-learn
      • Re: enums bearophile via Digitalmars-d-learn
        • Re: enums Paul D Anderson via Digitalmars-d-learn
          • Re: enums bearophile via Digitalmars-d-learn
          • Re: enums Timon Gehr via Digitalmars-d-learn
          • Re: enums monarch_dodra via Digitalmars-d-learn
            • Re: en... Chris Nicholson-Sauls via Digitalmars-d-learn
              • Re... bearophile via Digitalmars-d-learn
              • Re... Chris Nicholson-Sauls via Digitalmars-d-learn
        • Re: enums Philippe Sigaud via Digitalmars-d-learn
  • Re: enums Ali Çehreli via Digitalmars-d-learn
    • Re: enums Philippe Sigaud via Digitalmars-d-learn
    • Re: enums Steven Schveighoffer via Digitalmars-d-learn
      • Re: enums Philippe Sigaud via Digitalmars-d-learn
  • Re: enums via Digitalmars-d-learn

Reply via email to