On 05/17/2016 03:14 PM, Alex wrote:
For a slice I surely need two numbers. But this should all be, what I need for a slice. For a iota, I need a maximum, which is not provided (at least at this moment) to the object containing the pointer/iota thing.
The slice's length is practically the same as iota's maximum. For slicing a pointer you need the minimum and the maximum, just as with iota. I don't see the difference.
ptr[5 .. 10] vs iota(5, 10) - Surely you need the number 10 in both cases?