[fpc-pascal] for .. in loop implementation
Marco van de Voort
marcov at stack.nl
Wed Jan 7 10:57:29 CET 2009
In our previous episode, leledumbo said:
> The latter one has iteration overheads, while the former can be optimized to
> loop as many as needed. I'm not saying I'm the best Pascal programmer, but
> in case there's a (better) solution to this (rather than extending the
> language) please tell me.
Your assesment is correct as far as I can see.
However IMHO that doesn't meant you are right. One single case of an
optimalization advantage, and then in a border case like iteration over a
constant set does not justify a language extension.
More information about the fpc-pascal