Formal Review of std.range.ndslice
Ilya via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 20 14:20:48 PST 2015
On Friday, 20 November 2015 at 21:23:40 UTC, Jack Stouffer wrote:
> On Friday, 20 November 2015 at 20:33:27 UTC, Ilya wrote:
>> Great! Added to PR's TODO list :-)
>
> This will be interesting because there is no defined idiomatic
> usage of std.allocator. I imagine std.range.ndslice will be the
> trend-setter for Phobos in this regard.
Slice is only a shell over a range/array. There is no reason to
add any kind of counters or special stuff entities. All this
idioms work out of the box because Slice holds an array. It is
already works with std.container.array, and it will work with the
future Array container based on allocators.
-- Ilya
More information about the Digitalmars-d
mailing list