Battle-plan for CTFE

Taylor Hillegeist via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat May 28 20:31:07 PDT 2016


On Saturday, 28 May 2016 at 12:27:26 UTC, Stefan Koch wrote:
> On Friday, 27 May 2016 at 23:31:24 UTC, Stefan Koch wrote:
>> On Monday, 9 May 2016 at 16:57:39 UTC, Stefan Koch wrote:
>>> Hi Guys,
>>>
>>> I have been looking into the DMD now to see what I can do 
>>> about CTFE.
>>
>>> I will post more details as soon as I dive deeper into the 
>>> code.
>>
>> Update :
>> int bug6498(int x)
>> {
>>     int n = 0;
>>     while (n < x)
>>         ++n;
>>     return n;
>> }
>> static assert(bug6498(10_000_000)==10_000_000);
>> This compiles now for me. Although it still takes 10 seconds ;)
>
> Big Whoop!
> Just make the number slightly lager and it fails again.
but smaller than 2_147_483_647 right :)




More information about the Digitalmars-d-announce mailing list