__has_side_effects

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Apr 1 00:56:40 UTC 2018


On 3/31/18 8:35 PM, Nicholas Wilson wrote:
> 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)?

Affirmative, thx for the correction.


More information about the Digitalmars-d mailing list