Does D have too many features?

jerro a at a.com
Sat Apr 28 22:20:06 PDT 2012


> 2. "enum as manifest constant". Use static or immutable/global. 
> Compiler should be smart enough to avoid putting immutable 
> integers/doubles into object file as variables.

But enums aren't only used for optimization. What if you want to 
use a constant at compile time, as a template parameter?


More information about the Digitalmars-d mailing list