[fpc-devel] for-in-index loop

Paul Ishenin ip at kmiac.ru
Fri Jan 25 01:33:03 CET 2013


25.01.2013 4:32, Alexander Klenin пишет:
> On Fri, Jan 25, 2013 at 7:18 AM, Jeppe Græsdal Johansen
> <jjohan07 at student.aau.dk> wrote:
>>
>> I think the idea is good if the feature is implemented as "optional".
>>
>> That way:
>> - If the enumerator class implements a CurrentIndex method then the for loop
>> can have an index variable.
>> - If not then the for loop can only behave as current for in loops.
>>
> Of course.

Then I also have nothing against this feature. If it is controllable by 
enumrator to allow/reject this then it is ok.

Best regards,
Paul Ishenin




More information about the fpc-devel mailing list