Re: ndslice and RC containers

2016-09-25 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Thursday, 22 September 2016 at 20:23:57 UTC, Nordlöw wrote: On Thursday, 22 September 2016 at 13:30:28 UTC, ZombineDev wrote: ndslice (i.e. Slice(size_t N, Range) ) is a generalization of D's built-in slices (i.e. T[]) to N dimensions. Just like them, ... Please note that the support for cre

Re: ndslice and RC containers

2016-09-22 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 22 September 2016 at 13:30:28 UTC, ZombineDev wrote: ndslice (i.e. Slice(size_t N, Range) ) is a generalization of D's built-in slices (i.e. T[]) to N dimensions. Just like them, ... Please note that the support for creating ndslices via custom memory allocators (i.e. makeSlice) wa

Re: ndslice and RC containers

2016-09-22 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Thursday, 22 September 2016 at 13:30:28 UTC, ZombineDev wrote: On Thursday, 22 September 2016 at 12:38:57 UTC, Nordlöw wrote: [...] ndslice (i.e. Slice(size_t N, Range) ) is a generalization of D's built-in slices (i.e. T[]) to N dimensions. Just like them, it doesn't handle memory owners

Re: ndslice and RC containers

2016-09-22 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 22 September 2016 at 12:38:57 UTC, Nordlöw wrote: Is ndslice' Slice() prepared for integration with containers with reference counting semantics? I wonder because according to the docs they internally store a pointer and an offset. What is that pointer supposed to point to except

ndslice and RC containers

2016-09-22 Thread Nordlöw via Digitalmars-d-learn
Is ndslice' Slice() prepared for integration with containers with reference counting semantics? I wonder because according to the docs they internally store a pointer and an offset. What is that pointer supposed to point to except from obviously currently a GC-allocated array? See: https://