<HTML>
<p><style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Apologies, I meant it was undefined if the loop exits normally, but retains its current value if terminated prematurely. Ah well!<br>
<br>
Admittedly I do like concrete rules, and any situations where something is undefined is explicitly stated. Hopefully we can put this one to bed now! Back to more exciting research and ventures.<br>
<br>
Gareth aka. Kit</p><p><br>
<br>
<br>
<span style="font-weight: bold;">On Fri 18/05/18 15:33 , Martok listbox@martoks-place.de sent:<br>
</span></p><blockquote style="padding-right: 0px; padding-left: 5px; margin-right: 0px; margin-left: 5px; border-left-color: rgb(245, 245, 245); border-left-width: 2px; border-left-style: solid;"><span style="color: rgb(102, 102, 102);">> Sorry to waste your time on this.
</span><br>
Don't worry, I like investigating this stuff. I don't like the rule-lawyering
<br>
that usually follows ;-)
<br>
<br>
<span style="color: rgb(102, 102, 102);">> I'm glad it states the for-loop variable will be left undefined - that's good enough documentation for me.
</span><br>
It is *not* undefined when the loop is left with break or exit, that's the
<br>
point. The ISO is not a very good reference for modern-ish Pascal.
<br>
<br>
--
<br>
Regards,
<br>
Martok
<br>
<br>
_______________________________________________
<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>
<a href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>" target="_blank"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a>
<br>
<br>
<br>
</blockquote></HTML>