CompileTime performance measurement

sarn via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 19:03:49 PDT 2016


On Sunday, 4 September 2016 at 01:53:21 UTC, Stefan Koch wrote:
> Pragma msg can only print compiletime constants.
> While __ctfeWriteln can print state while doing CTFE.

Thanks, that makes a lot of sense.  Just to check, it prints to 
standard error, right?

Also, the issue of non-deterministic compilation reminds me of 
the debate about allowing logging statements in pure functions.  
Maybe there's a similar answer (i.e., making it only work in some 
kind of debug mode).


More information about the Digitalmars-d mailing list