2 ms·
Sure you can - you just need to copy it. And I didn't mean to imply that array references should always be read-only. What I meant is that there should be a wa
by int_19h 10y ago
Sure you can - you just need to copy it.
And I didn't mean to imply that array references should always be read-only. What I meant is that there should be a way to say "the referenced array cannot be mutated through this reference", like const* in C. 90% of the time, when you pass or return arrays, this is exactly what you want.