Only use 'in' if you are looking at the data, but not modifying or storing copies of pointers/references to it anywhere in any way.
Re: 'const' and 'in' parameter storage classes
Adam D. Ruppe via Digitalmars-d-learn Fri, 15 May 2015 09:10:42 -0700
The scope storage class means you promise not to escape any
reference to the data. This isn't enforced but it is similar in
concept to Rust's borrowed pointers - it may someday be
implemented to be an error to store them in an outside variable.
- 'const' and 'in' parameter st... ref2401 via Digitalmars-d-learn
- Re: 'const' and 'in' par... Adam D. Ruppe via Digitalmars-d-learn
- Re: 'const' and 'in'... ref2401 via Digitalmars-d-learn
- Re: 'const' and ... Adam D. Ruppe via Digitalmars-d-learn
- Re: 'const' and 'in' par... Steven Schveighoffer via Digitalmars-d-learn
- Re: 'const' and 'in'... ref2401 via Digitalmars-d-learn
- Re: 'const' and ... Steven Schveighoffer via Digitalmars-d-learn
- Re: 'const' ... Marco Leise via Digitalmars-d-learn
