On 01/24/13 19:36, Alexander Klenin wrote:
>> Enumerators are not iterators.
> Eh... actually, they are? Why do you think otherwise?

Enumerators are limited in functionality. Iterators are the full-blown
thing. Common Iterator API is something like Next, Prev, Reset, HasNext,
HasPrev etc. Enumerators normally just advance and only in one
direction.  This is how it is in many frameworks. Even Java's
documentation describes it like that - see the bottom of the page for
Iterator.


http://docs.oracle.com/javase/6/docs/technotes/guides/collections/reference.html


Regards,
  - Graeme -

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to