Asm and CTFE

bearophile bearophileHUGS at lycos.com
Sat Nov 12 14:51:52 PST 2011


Alex Rønne Petersen:

> The problem is that DMD defines *all* version identifiers regardless of 
> whether CTFE is active. I guess it's just a matter of removing the 
> inline assembly identifiers when doing CTFE.

Do you remember why the  __ctfe is a run-time variable instead of a more right compile-time constant/version? I remember that Walter was not able to define it as a compile-time constant. So I don't know if it is possible to remove the inline assembly identifiers when doing CTFE.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list