Migrating an existing more modern GC to D's gc.d

Jonathan M Davis newsgroup.d at jmdavisprog.com
Fri Apr 13 21:40:37 UTC 2018


On Friday, April 13, 2018 22:36:31 Timon Gehr via Digitalmars-d wrote:
> On 10.04.2018 10:56, Jonathan M Davis wrote:
> > CTFE only ever happens when it must happen. The compiler never does it
> > as an optimization.
>
> The frontend doesn't. The backend might.

The optimizer may do constant folding or inline the code so far that it just
gives the result, but it doesn't do actual CTFE. That's all in the frontend.

- Jonathan M Davis



More information about the Digitalmars-d mailing list