Request for Comment assert(__ctfe)

Atila Neves atila.neves at gmail.com
Tue Apr 7 09:16:34 UTC 2020


On Tuesday, 7 April 2020 at 06:53:18 UTC, Walter Bright wrote:
> On 4/6/2020 3:14 AM, Atila Neves wrote:
>> Wouldn't it be easier to skip codegen for private functions 
>> that are never called from non CTFE contexts?
>
> There's no reason the CTFE-only function can't be global.

No, there isn't. But in my experience nearly all functions I 
write that are only ever called from CTFE returning a string to 
be mixed in are private.


More information about the Digitalmars-d mailing list