On Friday, 16 October 2015 at 10:35:23 UTC, Shriramana Sharma wrote:
I understand that const can refer to either mutable or immutable, so does this mean I should replace all occurrences of `string` in arguments and return values of functions by `const(char)[]`?

Use `inout` attribute for that: take inout(char)[] parameter and return inout(char)[] result.

Reply via email to