But with a slice negative indexes are never allowed, even on a pointer.
youd have to do (c-1)[0 .. 1];
Nice! Thank you both!In D Slice article it says "You can even use negative indexes!" so I thought
that the [-1..x] should work too :)
SrMordred via Digitalmars-d-learn Wed, 21 Feb 2018 16:36:08 -0800
But with a slice negative indexes are never allowed, even on a pointer.
youd have to do (c-1)[0 .. 1];
Nice! Thank you both!In D Slice article it says "You can even use negative indexes!" so I thought
that the [-1..x] should work too :)