[fpc-pascal] For ..in GetEnumerator Allocation

Marco van de Voort marcov at stack.nl
Wed Oct 4 12:19:39 CEST 2017


In our previous episode, Michael Van Canneyt said:
> As an alternative you can create an object enumeator. 
> It's simply allocated on the stack, and you can reset it in the enumerator
> operator.

Yup, or a record.  See e.g. http://www.stack.nl/~marcov/lightcontainers.zip




More information about the fpc-pascal mailing list