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

Mike Parker aldacron at gmail.com
Fri Sep 18 02:49:30 UTC 2020

On Thursday, 17 September 2020 at 22:25:47 UTC, claptrap wrote:

> If enum means manifiest constant, or compile time constant, 
> then it makes more sense, as you allude to in a later post. But 
> 'enum' is a terrible name for that and I dont think my brain 
> will ever stop finding it incongruous.

And in my mind, what is a single-member enum if not a 
compile-time constant? This is why naming is hard.

More information about the Digitalmars-d-learn mailing list