Should all enums be immutable?

Steven Schveighoffer schveiguy at yahoo.com
Tue Apr 5 17:02:37 PDT 2011


On Tue, 05 Apr 2011 19:53:35 -0400, Nick Sabalausky <a at a.a> wrote:


> What about "enum string x = ..." or "immutable string x = ..."? Anyone  
> know
> if those exhibit the same problem?

No, strings are generated at compile time via a literal or CTFE.

-Steve


More information about the Digitalmars-d mailing list