[fpc-devel] for-in-index loop

Florian Klämpfl florian at freepascal.org
Thu Jan 24 21:55:12 CET 2013


Am 24.01.2013 21:44, schrieb Mattias Gaertner:
> On Thu, 24 Jan 2013 21:30:23 +0100
> Florian Klämpfl <florian at freepascal.org> wrote:
> 
>> Am 24.01.2013 20:36, schrieb Alexander Klenin:
>>> That's debatable.
>>
>> As long as there is only some few line idea, there cannot debated much.
>> Just an example: what happens with i if I start to delete from s during
>> the for loop?
> 
> Do you mean like the TList enumerator?
> Deletion during loop results in skips.

No, if I delete a char already processed. Then the index is just useless
but the loop will continue to run.




More information about the fpc-devel mailing list