On Thursday, 30 April 2020 at 14:00:40 UTC, Arredondo wrote:
I had been using inout for some time now for "purely input function parameters".

`inout` is more specifically for things you take in, look at, then pass back out. So it forms part of your return value.

`const` is for when you are just looking without returning any of it.


scope inout may be more appropriate if you are going to return it at all...
  • in vs inout Arredondo via Digitalmars-d-learn
    • Re: in vs inout Adam D. Ruppe via Digitalmars-d-learn

Reply via email to