pragma(__ctfe)

Bruce Carneal bcarneal at gmail.com
Thu Sep 28 10:54:57 UTC 2023


On Thursday, 28 September 2023 at 06:02:05 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 28/09/2023 5:58 PM, Bruce Carneal wrote:
>> The assert hack is useful but limited. It will not fail at 
>> compile time, will not prevent all code/symbol generation, 
>> will not enable compile time understanding that the function 
>> is restricted to use at compile time (if that's useful apart 
>> from the other ...).
>
> This proposal (should this PR changed to it) would restrict 
> that function to CTFE only.

Correct.



More information about the Digitalmars-d mailing list