Battle-plan for CTFE

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Sep 25 07:47:40 PDT 2016


On Tuesday, 20 September 2016 at 05:06:57 UTC, Nordlöw wrote:
> On Monday, 19 September 2016 at 10:07:06 UTC, Stefan Koch wrote:
>> Compiling all of phobos does not crash my engine anymore!
>
> Great work! Keep up still!

I am proud to announce,
(and slightly embarssed because it took to long)

that the following code can now be executed using the new CTFE 
engine :

string fn(bool b)
{
     return b ? "true" : "false";
}
static assert(fn(true) == "true");
static assert(fn(false) == "false");

although this seems trivial it took me about 3 months to get to 
this point.
I believe from here on the road will be less steep.



More information about the Digitalmars-d-announce mailing list