ndslice and RC containers

Ilya Yaroshenko via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 25 12:26:37 PDT 2016


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 creating ndslices via custom 
>> memory allocators (i.e. makeSlice) was added after dmd-2.071 
>> was branched, so you either have to wait for dmd-2.072, or use 
>> a nightly build (which I recommend).
>
> How will this interact with DIP-1000, specifically, will ref 
> returning members of Slice() be scope-qualified?
>
> Thx!

No, `Slice` structure is not data owner.


More information about the Digitalmars-d-learn mailing list