CompileTime performance measurement

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 4 05:37:26 PDT 2016


On 9/4/16 6:10 AM, rikki cattermole wrote:
> On 04/09/2016 2:08 PM, Stefan Koch wrote:
>> On Sunday, 4 September 2016 at 02:06:55 UTC, Stefan Koch wrote:
>>> This works already.
>>> Anything placed in a debug {} block will be considered pure regardless.
>>
>> Opps your comment was about the debate.
>> I would say that __ctfeWriteln and __ctfeTicksMs should not work outside
>> of debug.
>
> Can we have writeln and writefln call into it if __ctfe is true?
> Just so that we have got some consistency between runtime and CTFE usage.

Yes, that's the natural way. __ctfeWriteln is really removing a 
limitation of writeln. -- Andrei


More information about the Digitalmars-d mailing list