static foreach / How to construct concatenated string?

MoonlightSentinel moonlightsentinel at
Mon Mar 9 15:29:30 UTC 2020

On Sunday, 8 March 2020 at 20:28:01 UTC, Robert M. Münch wrote:
> You can get rid of the enum [...]

That depends on your use case. You will need enum if you want to 
use the value at compile time (e.g. when using it as a template 
parameter). Otherwise a normal string will suffice.

> und the static and it will work too.

Yesh, I forgot about the old implicit static foreach loop.

More information about the Digitalmars-d-learn mailing list