[fpc-pascal] for..in loops?
Florian Klaempfl
florian at freepascal.org
Sun Nov 20 13:23:12 CET 2005
Lukas Gebauer wrote:
>>foreach ... in ... do adds no additional abstraction layer. I consider
>>foreach usefull if it allows to create own iterators which are as fast as
>>walking a linked list with p:=p^.next; Especially since it then allows
>>e.g. to write iterators with data prefetching.
>
>
> Just my two cents:
>
> For-in loops is standard part of Delphi-2006 pascal language. (Not only
> for .NET, it is for Win32 too!)
>
> I think, if Freepascal wish to stay Delphi compatible, then is good idea
> to implement this features too. Look to next Pascal language enhancements
> in Delphi-2006... (like operator overloads or class variables...)
... which has fpc for years :)
More information about the fpc-pascal
mailing list