Re: Why isn't there more if( ctfe) in std.math ?

ketmar ketmar at ketmar.no-ip.org
Sat Sep 23 22:01:54 UTC 2017


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.


More information about the Digitalmars-d-learn mailing list