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