Formal Review of std.range.ndslice

Ilya Yaroshenko via Digitalmars-d digitalmars-d at
Wed Nov 18 02:53:32 PST 2015

On Wednesday, 18 November 2015 at 10:18:37 UTC, Nordlöw wrote:
> On Tuesday, 17 November 2015 at 18:38:14 UTC, Ilya Yaroshenko 
> wrote:
>>> AFAIK, if all the slice dimensions are know at compile-time 
>>> it should. This is kind of similar to how std.range.chain() 
>>> works.
>> Thanks! Implemented: 
>> --Ilya
> I don't see any other checks using `isRandomAccessRange`. 
> Surely there must be other ranges/algorithms in ndslice that 
> should propagate random access, right?

Only Slice and ByElements has random access. Special check was 
added for internal PtrShell, however it is commented with 
`version(none)` because it works only with git compiler (I have 
fixed std.internal.test.dummyrange ).

There was check using `isRandomAccessRange` after range 
primitives in Slice. I have added `hasLength` and `hasSlicing` 

Updated docs:

-- Ilya

More information about the Digitalmars-d mailing list