I'm writing an iterator and under 7.7.34 (at least), I can't seem to get a loop using it to end, even though next() and `+=() both return UNDEFINED at the end, but the foreach loop doesn't ever seem to end. Am I missing something?
Bill
On Tue, Sep 25, 2007 at 11:23:45PM -0400, H. William Welliver III wrote:
I'm writing an iterator and under 7.7.34 (at least), I can't seem to get a loop using it to end, even though next() and `+=() both return UNDEFINED at the end, but the foreach loop doesn't ever seem to end. Am I missing something?
i think you need to implement `!() http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Iterator/_bac...
greetings, martin.
pike-devel@lists.lysator.liu.se