[fpc-pascal] For-in-loop question about GetEnumerator
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri May 16 23:38:01 CEST 2014
On Fri, 16 May 2014 23:13:43 +0200
Krzysztof <dibo20 at wp.pl> wrote:
>[...]
> This article is quite clear for me: http://wiki.freepascal.org/for-in_loop
>[...]
> ... then FList.GetEnumerator create new object
> (TListEnumerator.Create(Self)). My question is, where it is freed? Is it
> freed automatically on runtime after exit from loop?
Yes.
Mattias
More information about the fpc-pascal
mailing list