ketmar wrote:

still, why `__ctfe` was designed as variable, and not as `enum ctfe = <bool>;`?

p.s.: i see only one reason for this rationale: to explicitly prevent people using `static if` to separate CTFE and non-CTFE code (that is, to lessen the chance than function heaves differently in runtime and in compile-time). but that doesn't work, as `if (__ctfe)` allows two completely different code pathes anyway.

Reply via email to