Re: iterator patch



Accepted and committed. I also merged the improvements you've send me
afterwards.

Thanks for the patch.

On Fri, 2006-07-07 at 16:48 +0300, Dirk-Jan C. Binnema wrote:
> Hi Philip / others,
> 
> Instead of complaining, here 's a patch making the iterators a bit
> easier to use. I've tried to keep the changes minimal, mostly because
> I'm lazy :-) Therefore, I've just added the '_is_done' method to
> all iterators, which makes writing loops using iterators much nicer.
> 
> I've done some testing, and it seems to work... please have a look.
> 
> Can I assume that when I create an iterator, it will point at the first
> element at the start?
> 
> Best wishes,
> Dirk.


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]