3 ms·
As the article points out, an entire function doesn't need to be CTFE compatible, only the particular path taken through the function by the interpreter. This
by WalterBright 5y ago
As the article points out, an entire function doesn't need to be CTFE compatible, only the particular path taken through the function by the interpreter.
This makes constexpr more of an impediment than an enabler.
Besides, people soon discover the utility of using functions at both compile and run time, and nobody has ever asked for D to require an annotation for it in 15 years.