Function attribute best practices

Ali Çehreli acehreli at yahoo.com
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.

Clearly.

 > 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."

Ali



More information about the Digitalmars-d-learn mailing list