enum and const or immutable ‘variable’ whose value is known at compile time

Mike Parker aldacron at gmail.com
Thu Sep 17 10:56:28 UTC 2020

On Thursday, 17 September 2020 at 09:44:20 UTC, claptrap wrote:

> Seriously how it's implemented is irrelevant.

And to be clear, my point wasn't about how it's implemented. My 
point was that:

enum { foo = 10; }


enum foo = 10;

Are effectively the same thing, whether it's implemented that way 
or not. So why on earth would a new keyword be necessary?

More information about the Digitalmars-d-learn mailing list