Stop using the enum as a manifest constant.

evilrat evilrat666 at gmail.com
Sun Jun 6 09:53:09 UTC 2021


On Sunday, 6 June 2021 at 09:49:11 UTC, Jack Applegame wrote:
>
> If you want to force CTFE, then use `static const` or `static 
> immutable`.
>

What did you expected from an enum array? It is known to allocate 
every time you reference it (except maybe for strings), have you 
just noticed this?


More information about the Digitalmars-d mailing list