Check for ctfe

Philippe Sigaud philippe.sigaud at gmail.com
Sat Aug 25 01:40:36 PDT 2012


On Sat, Aug 25, 2012 at 2:20 AM, cal <callumenator at gmail.com> wrote:
> On Saturday, 25 August 2012 at 00:13:44 UTC, Timon Gehr wrote:
>>
>> On 08/25/2012 02:06 AM, cal wrote:
>>>
>>> I saw something on the forum not too long ago about statically checking
>>> to see if the current function is being executed at compile time, but
>>> can't seem to find it now. Can it be done? (Like static if (__ctfe__) or
>>> something)
>>
>>
>> if(__ctfe)
>
>
> Oh i was using it with static if which didn't work, thanks!

Same here. I use it rarely, and every time, I first type 'static if
(__ctfe) {...'


More information about the Digitalmars-d-learn mailing list