user1234 wrote:
"if (__ctfe) {}" is a test happening at runtime. Both the if and the else branches got compiled
nope. compiler knows about this special pseudovariable, and will not generate code neither for condition, nor for ctfe branch.
ketmar via Digitalmars-d-learn Sat, 23 Sep 2017 15:06:12 -0700
user1234 wrote:
"if (__ctfe) {}" is a test happening at runtime. Both the if and the else branches got compiled
nope. compiler knows about this special pseudovariable, and will not generate code neither for condition, nor for ctfe branch.