static foreach / How to construct concatenated string?

Robert M. Münch robert.muench at saphirion.com
Sat Mar 7 16:45:11 UTC 2020


On 2020-03-07 16:40:15 +0000, Adam D. Ruppe said:

> 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!

Perfect! This implicit CTFE is a tricky thing to see/remember/... 
Feeling a bit dumb but, hey it works :-)

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster



More information about the Digitalmars-d-learn mailing list