ctfe reduction

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 21 11:28:20 PDT 2017

On Tue, Mar 21, 2017 at 05:56:33PM +0000, StarGrazer via Digitalmars-d wrote:
> One problem with ctfe's is that the compiler is a bit ignorant.

The reason for this is that pragma(msg) is not a CTFE construct, but an
AST construct.  It is evaluated when the compiler is building the
abstract syntax tree of the code, and discarded thereafter. CTFE does
not even see pragma(msg)'s.

More details here:



Lottery: tax on the stupid. -- Slashdotter

More information about the Digitalmars-d mailing list