enum in template

bearophile bearophileHUGS at lycos.com
Thu Apr 30 04:00:22 PDT 2009


Daniel Keep:
> enum defines a "manifest constant."  In other words, it defines a
> constant that does NOT consume any storage anywhere in the program: it
> exists only at compile-time.

For the original poster: this is true in D2+ only, not in D1.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list