4 ms·
> a structure that has a pointer to the underlying data by value Isn't this the exact definition of a reference type?
by bishop_mandible 13y ago
> a structure that has a pointer to the underlying data by value
Isn't this the exact definition of a reference type?
- voidlogic 13y agoExcept that if you are passed something like a slice and you modify the length, that change is not reflected to others like it would be with a reference. See my above code example.