CTFE attribute

Walter Bright newshound2 at digitalmars.com
Sat Jan 28 12:38:46 PST 2012


On 1/28/2012 12:38 PM, Walter Bright wrote:
> On 1/28/2012 11:02 AM, Manu wrote:
>> I'd also like an error if the function were called outside of CTFE...
>
> if (!ctfe) assert(0);

Oops,

    if (!__ctfe) assert(0);


More information about the Digitalmars-d mailing list