On Monday, 16 May 2016 at 22:54:31 UTC, ag0aep6g wrote:
On 05/17/2016 12:43 AM, Alex wrote:
The point is, that in my model the slice has a meaning itself.
So, the
language provides one of a needed constructs...
Huh? As far as I understand, the pointer of the slice is
invalid, and you never dereference it. What kind of additional
meaning can the slice carry then? It's practically just a
struct of two `size_t`s.
the elements of the slice are accessible just for reading, right,
but with them I reference the data in other objects.