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