Why does this mixin fail to compile?
Stefan Koch
uplink.coder at googlemail.com
Mon Aug 12 15:23:31 UTC 2024
On Monday, 12 August 2024 at 11:26:50 UTC, IchorDev wrote:
> On Tuesday, 2 July 2024 at 16:46:11 UTC, Jonathan M Davis wrote:
>> It really is a shame that "newCTFE" was never completed.
>
> I didn’t know about this. I thought a new CTFE engine was
> actually implemented a few years ago. Is ‘newCTFE’ too old to
> be resurrected? Would it be feasible to make something similar
> from the ground up?
It's about 12.000 lines of code.
I am not sure how much has rotted away, I last touched it in 2021.
The relevant files would be:
the bytecode interpreter:
https://github.com/UplinkCoder/dmd/blob/newCTFE_2093/src/dmd/ctfe/bc.d
the visitor that builds the bytodecode:
https://github.com/UplinkCoder/dmd/blob/newCTFE_2093/src/dmd/ctfe/ctfe_bc.d
as you can see by the branch name it was rebased on dmd 2.093.
so that's a few versions old now.
As far as I know Max Haughton has tried to rebase it on master
and improve it but I have not heard from him about that.
More information about the Digitalmars-d-learn
mailing list