[fpc-devel] Iterator for array properties
Michael Van Canneyt
michael at freepascal.org
Sat Oct 10 12:41:16 CEST 2015
On Sat, 10 Oct 2015, Ondrej Pokorny wrote:
> On 10.10.2015 12:30, Michael Van Canneyt wrote:
>> After a
>>
>> sed s/iterator/enumerator/g
>>
>> I'm all for it.
>
> + Yes, the "in Self" is supported. But this is not the problem here. The
> example still doesn't compile. A class can have more array properties. And
> even the default class enumerators can be redeclared and so hide enumerators
> from ancestor classes.
>
> Maybe a better example:
>
> *Procedure TForm1.Button1Click(Sender: TObject); **
> ** var **
> ** Cont: TControl; **
> ** begin **
> ** for Cont in Controls do **
> ** //... **
> ** end; **
> ***
100% agreed :)
Michael.
More information about the fpc-devel
mailing list