Battle-plan for CTFE

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Sep 19 03:07:06 PDT 2016


On Thursday, 8 September 2016 at 18:54:52 UTC, Stefan Koch wrote:
> On Thursday, 8 September 2016 at 13:11:23 UTC, Stefan Koch 
> wrote:
>> On Thursday, 8 September 2016 at 10:44:55 UTC, Stefan Koch 
>> wrote:
>>> compiling parts of phobos does no longer crash the new engine.
>>> However it still produces incorrect byte-code :)
>>
>> I think I have taken care of the incorrect bytecode.
>> It was not an issue with the engine itself but rather with the 
>> way I plugged it in.
>> The new engine is not supposed being called if the old one has 
>> already started to interpret the function, because the two do 
>> not and should not share state.
>
> I found more incorrect code.
> this time it's located more deeply in the engine.
> I am investigating the cause.
> It seems to be related closures somehow.

Compiling all of phobos does not crash my engine anymore!
However running the unittests does show incorrect results :(
This is concerning since I am mostly bailing out.

I think this too seems to be related to closures produced in 
templates.
Really nasty stuff.


More information about the Digitalmars-d-announce mailing list