type of functions

Simen Kjærås simen.kjaras at gmail.com
Mon May 10 11:11:26 UTC 2021


On Monday, 10 May 2021 at 10:37:51 UTC, Alain De Vos wrote:
> Can I say that the compiler is intelligent enough to add the 
> attributes "pure nothrow @nogc @safe" ?

Yes, in those cases (and some others). The functionality is 
described here:
https://dlang.org/spec/function.html#function-attribute-inference

--
   Simen


More information about the Digitalmars-d-learn mailing list