On 25/10/2009, Paul Ishenin <webpi...@mail.ru> wrote:
>  I already created delphi compatible enumerator classes for the basic RTL
> lists: TFpList, TList, TStrings, TComponent and TCollection. We can inherit
> all them from the TInterfacedObject and Graeme interfaces. And list classes
> will have 2 methods: GetEnumerator: TSomeEnumerator and GetIterator:
> ISomeIterator where TSomeEnumerator implements ISomeIterator interface.

When the discussion started about for-in, I could not clearly see how.
But after reading the Delphi article (link you posted earlier) and
looking at your examples for testing for-in loop, I think we could
defiantly share some common iterator code.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to