Checking for CTFE at compile-time

Per Nordlöw per.nordlow at gmail.com
Wed Nov 7 22:01:15 UTC 2018


Opposite to run-time checking via

if (__ctfe)
{
     //
}

is there no way of checking at compile-time whether the current 
scope of a function is being executed in CTFE?


More information about the Digitalmars-d-learn mailing list