Static foreach pull request

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue May 9 15:00:41 PDT 2017


On 5/10/17 1:00 AM, Andrei Alexandrescu wrote:
> On 5/10/17 12:56 AM, Timon Gehr wrote:
>> Thanks! (It's a known issue though: 
>> https://github.com/tgehr/dmd/blob/static-foreach/test_staticforeach.d#L330.) 
>>
>>
>> I guess the problem is that I do not propagate the error condition 
>> properly, but I'm not sure how to do it. (In my frontend, error 
>> handling control flow is automated almost completely.)
> 
> Ignorant thought: guard the static foreach with a static if? -- Andrei

(as a lowering that is)



More information about the Digitalmars-d mailing list