Function attribute best practices

Ali Çehreli acehreli at
Mon Sep 12 18:35:39 UTC 2022

On 9/12/22 11:29, Steven Schveighoffer wrote:

 > So you are thinking about this the wrong way I believe.


 > When you put `pure` on a template function, you are saying "only
 > instantiations where this function can be pure are allowed".

Makes sense. I was trying to put as many attributes as possible, being 
proud like, "look: my function is pure, @nogc, etc."


More information about the Digitalmars-d-learn mailing list