__has_side_effects

Nicholas Wilson iamthewilsonator at hotmail.com
Sun Apr 1 00:35:44 UTC 2018


On Saturday, 31 March 2018 at 20:44:13 UTC, Andrei Alexandrescu 
wrote:
> Yah, only strongly pure functions would qualify. Indeed that's 
> easy for the compiler to figure - so I'm thinking 
> pragma(isStronglyPure, expression) would be easy to define.
>
> What would be some good uses of this?
>
>
> Andrei

Surely you mean __traits(isStronglyPure, expression)?


More information about the Digitalmars-d mailing list