why are opCmp and opEquals not pure.

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 17 23:32:50 PDT 2015


On 17-Sep-2015 23:24, Stefan Koch wrote:
> On Thursday, 17 September 2015 at 19:47:05 UTC, Timon Gehr wrote:
>
>> I don't get this point. You don't need any annotations to write
>> ctfe-able code.
>
> ctfe only works with pure functions.

Wrong.

> annotating your functions with the pure attribute helps you to pinpoint
> problems early. without having to do the actual ctfe every time you
> compile... which might take a considerable amount of time :)
>


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list