On 13.04.2018 23:40, Jonathan M Davis wrote:
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

CTFE just stands for "compile-time function evaluation". Claiming that the compiler never does this as an optimization is a bit misleading, but fine.

Reply via email to