static foreach / How to construct concatenated string?

Timon Gehr timon.gehr at gmx.ch
Mon Mar 9 11:49:25 UTC 2020


On 07.03.20 17:41, MoonlightSentinel wrote:
> On Saturday, 7 March 2020 at 16:30:59 UTC, Robert M. Münch wrote:
>> Is this possible at all?
> 
> You can use an anonymous lambda to build the string in CTFE:

It turns out that if you do use this standard idiom, you might end up 
getting blamed for an unrelated DMD bug though:
https://github.com/dlang/dmd/pull/9922

:o)


More information about the Digitalmars-d-learn mailing list