Struggling to implement parallel foreach...

Timon Gehr timon.gehr at gmx.ch
Tue Jun 18 13:37:54 UTC 2019


On 18.06.19 15:24, Timon Gehr wrote:
> On 18.06.19 14:00, Nicholas Wilson wrote:
>> On Tuesday, 18 June 2019 at 00:17:06 UTC, Timon Gehr wrote:
>>> Unfortunately I have another paper deadline in a few weeks, but maybe 
>>> I can set aside a few weekends this summer to try to fix function 
>>> qualifiers.
>>
>> I intend to beat you to it :)
>> ...
> 
> Great. :)
> 
>> Suleyman Sahmi has located where things go right for the struct 
>> case[1], so it shouldn't be too hard to manufacture a fix for the 
>> closure case.
>>
>> [1]: 
>> https://github.com/dlang/dmd/blob/f455995f234a2091c4482bff222a2977dbfa186b/src/dmd/expressionsem.d#L885-L886 
>>
> 
> I believe it might be easier to locate where things go right for 
> `shared` and `immutable` capturing and fix the logic there. I provide 
> tests below.
> 
> Note that a few missing checks and const-promotions when capturing are 
> not the only issue with nested function qualifiers. If the following 
> isses are fixed, we should be in pretty good shape (but probably I 
> forgot about something):
> 
> ...
> 


More information about the Digitalmars-d mailing list