static foreach / How to construct concatenated string?

Adam D. Ruppe destructionator at gmail.com
Sat Mar 7 16:40:15 UTC 2020


On Saturday, 7 March 2020 at 16:30:59 UTC, Robert M. Münch wrote:
> Which of course doesn't work... I didn't find any reference how 
> to build-up strings in a statif foreach loop.
>
> Is this possible at all?

Use regular foreach with a regular string. Put that inside a 
function.

Then simply use that function to initialize your other thing and 
enjoy the magic of CTFE!


More information about the Digitalmars-d-learn mailing list