range.chunks(2) error
Salih Dincer
salihdb at hotmail.com
Thu Mar 28 23:21:37 UTC 2024
On Thursday, 28 March 2024 at 17:50:17 UTC, Salih Dincer wrote:
> Hi,
>
> When I use the chunks() template with iota(), for instance,
> with chunks(2), I can access both r.front and r.back. However,
> in a range of my own type (named iras in the code below), only
> r.front is working. I think the error given by r.back is not a
> bug related to chunks, is it?
>
It's really nice to solve a problem on your own. Turns out I
needed to add save, opSlice, length and opDollar members to the
range.
SDB at 79
More information about the Digitalmars-d-learn
mailing list