Should all enums be immutable?

Trass3r un at known.com
Wed Apr 6 09:30:43 PDT 2011


Am 06.04.2011, 17:27 Uhr, schrieb Don <nospam at nospam.com>:
> No. It's just a workaround for an optlink bug: manifest constants that  
> are never used, still get put into the executable.

What?

> By default, you should use const, not enum. You should forget that enum  
> manifest constants even exist.

Don't you mean immutable in this case?


More information about the Digitalmars-d mailing list