CompileTime performance measurement
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 3 19:06:55 PDT 2016
On Sunday, 4 September 2016 at 02:03:49 UTC, sarn wrote:
> 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).
This works already.
Anything placed in a debug {} block will be considered pure
regardless.
More information about the Digitalmars-d
mailing list