Request for Comment assert(__ctfe)

Stefan Koch uplink.coder at googlemail.com
Thu Apr 9 12:19:57 UTC 2020


On Thursday, 9 April 2020 at 10:14:21 UTC, Basile B. wrote:
> On Sunday, 5 April 2020 at 12:11:23 UTC, Stefan Koch wrote:
>> Hi Guys,
>>
>> [...]
>>
>> What do you guys think?
>>
>> Cheers,
>>
>> Stefan
>
> Other and new thought.
>
> This will have a positive impact on coverage maybe ?
>
> I opened this a while ago: 
> https://issues.dlang.org/show_bug.cgi?id=15590
>
> (0 coverage should be ignored in __ctfe branches)
>
> The problem would be partially solved when splitting the 
> function in two versions.

well ... splitting the function in two versions comes with the 
oblivious overhead of having to run semantic two times.
As well as having to maintain that in a multi-pass compilation 
model which we have to avoid having headers and that gives use 
the power to declare anywhere.



More information about the Digitalmars-d mailing list