pragma(__ctfe)

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Sep 28 08:02:18 UTC 2023


On 28/09/2023 8:36 PM, Nicholas Wilson wrote:
> It will screw up .di generation, and make separate compilation more 
> difficult.

No not really, think about the constraints of CTFE.

You can't elide a function body which is to be used from CTFE. Since you 
have to have the function body to CTFE it.

So where the annotation exists, doesn't matter too much.


More information about the Digitalmars-d mailing list