static foreach is now in github master

Seb via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jul 18 08:46:04 PDT 2017


On Tuesday, 18 July 2017 at 10:06:33 UTC, Vladimir Panteleev 
wrote:
> On Tuesday, 18 July 2017 at 10:02:10 UTC, Seb wrote:
>> And thanks to dmd-nightly, also on run.dlang.io:
>>
>> https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7D
>
> This link doesn't work, looks like it cuts off at the first ; 
> ...

Oh - seems like that was due to a different behavior between FF 
and Chrome :/
(Chrome unescapes the semi-colon by default). This has been fixed 
now, so the link above or this shortlink should work: 
https://is.gd/1TCQOh


More information about the Digitalmars-d-announce mailing list