Divide & Conquer divides, but doesn't conquer

Tove tove at fransson.se
Mon May 25 17:00:38 UTC 2020


On Monday, 25 May 2020 at 16:57:48 UTC, Stefan Koch wrote:
> On Monday, 25 May 2020 at 16:46:16 UTC, Timon Gehr wrote:
>> On 25.05.20 18:04, Andrei Alexandrescu wrote:
>>> [...]
>>
>> QoI. The original `static foreach` implementation in my 
>> compiler frontend runs in linear time, even though it is 
>> implemented in a very similar way. Note that even 
>> `iota(n).array` has superlinear running time with DMD's CTFE.
>>
>> [...]
>
> What do you do about the scopes?

Can't they be elided if the body contains no declarations?



More information about the Digitalmars-d mailing list