On Thursday, 13 May 2021 at 13:30:29 UTC, Alain De Vos wrote:
Or have I a wrong understanding of pure or the compiler.
pure means it doesn't depend on any mutable info outside its arguments.
You are only working on the arguments there so it is ok.
Adam D. Ruppe via Digitalmars-d-learn Thu, 13 May 2021 06:50:37 -0700
On Thursday, 13 May 2021 at 13:30:29 UTC, Alain De Vos wrote:
Or have I a wrong understanding of pure or the compiler.
pure means it doesn't depend on any mutable info outside its arguments.
You are only working on the arguments there so it is ok.