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@79


  • range.chunks(2) error Salih Dincer via Digitalmars-d-learn
    • Re: range.chunks(2) error Salih Dincer via Digitalmars-d-learn

Reply via email to