[fpc-devel] New feature discussion: for-in loop
Graeme Geldenhuys
graemeg.lists at gmail.com
Sun Oct 25 13:41:01 CET 2009
On 25/10/2009, Paul Ishenin <webpirat at 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/
More information about the fpc-devel
mailing list