static foreach is now in github master

Steven Schveighoffer via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jul 20 13:07:12 PDT 2017


On 7/20/17 3:53 PM, Jack Stouffer wrote:
> On Tuesday, 18 July 2017 at 15:46:04 UTC, Seb wrote:
>> https://is.gd/1TCQOh
> 
> Hmmm, that code is printing
> 
>> 0
>> 1
>> 2
>> 3
>> 0
>> 1
>> 2
>> 3
> 
> for me. Shouldn't it just be printing once?

I think it's because it's using rdmd, and that runs dmd once to generate 
dependencies, and one more time to compile.

It's not specific to static foreach or the new compiler:

https://is.gd/g6WPyv

-Steve


More information about the Digitalmars-d-announce mailing list