assert(__ctfe) and betterC

Walter Bright newshound2 at
Thu Jan 28 02:35:24 UTC 2021

On 1/27/2021 12:59 PM, Steven Schveighoffer wrote:
> I remember something about assert(__ctfe) in your function telling the compiler 
> to not emit the code to the object file. Did that get in? Is there a way we can 
> use that to turn off betterC too?

In oper.d there are some lambdas which generate static information, and the 
lambdas are not emitted to the object file.

This capability is what eliminated the need for the optabgen.d file.

More information about the Digitalmars-d mailing list