These are chat archives for libmir/public
Upgrading to DMD nightly worked nicely. However the constructor is a little inconvenient for my uses:
// I couldn't find an easier way to create a static array lvalues, // so I could pass them to the `ref in size_t[PureN]` parameters auto s = Structure!2([2, 2], [32 ,1]); auto slice = Slice!(2, uint*)(s.lengths, s.strides, ptr);
What do you think about adding:
this(Repeat!(N, size_t) lengths, Repeat!(N, size_t) strides, PureRange range);
So that it could be used like this:
auto slice = Slice!(2, uint*)(2, 2, 32 ,1, ptr);
in auto ref?