The use of ref introduces a level of indirection. I suspect the writer was trying to avoid copying array elements -- unnecessary, since vector_t was defined as a dynamic array, where only the bounds are passed.

Yeah I overlooked that, I always think of a struct when thinking about vectors.

Reply via email to