[fpc-devel] New feature discussion: for-in loop
Florian Klaempfl
florian at freepascal.org
Tue Oct 20 11:23:08 CEST 2009
Michael Van Canneyt schrieb:
>
> Secondly:
> You promote a certain class/interface to a language feature. The
> compiler then depends on the presence of a certain class with some
> 'known' methods in the RTL.
>
The whole interface ref. counting depends on that as well as e.g. the
"as" operator.
My opinion about the for-in loop:
- I won't implement it
- if somebody else implements it in a delphi compatible manner: fine
- if somebody else implements it in a delphi compatible manner solving
the flaws: great
- if somebody else has ideas how the existing classes can be extended
without drawbacks by more sophisticated iterators, go ahead, this won't
interfere with Paul's stuff
More information about the fpc-devel
mailing list