[Bug 26183] make it easier to define an iterator on an interface that iterates over a set of values


--- Comment #16 from Cameron McCormack <cam@mcc.id.au> ---
(In reply to Cameron McCormack from comment #0)
> Currently the spec requires you to define the "iterator behavior" and a
> bunch of other definitions "when you use "iterator;" on an interface.  There
> should be an easier way to make an object's iterator just go over a set of
> values.

I've added an "iterate a list of values" pre-defined iterator behaviour that
you can reference, which avoids needing to define the stuff about the iterator
state and returning values.



You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 30 September 2014 01:05:29 UTC