Apologies, I meant it was undefined if the loop exits normally,
but retains its current value if terminated prematurely.  Ah well!

 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.

 Gareth aka. Kit

  

 On Fri 18/05/18 15:33 , Martok list...@martoks-place.de sent:
 > Sorry to waste your time on this. 
 Don't worry, I like investigating this stuff. I don't like the
rule-lawyering 
 that usually follows ;-) 

 > I'm glad it states the for-loop variable will be left undefined - that's
good enough documentation for me. 
 It is *not* undefined when the loop is left with break or exit, that's the

 point. The ISO is not a very good reference for modern-ish Pascal. 

 -- 
 Regards, 
 Martok 

 _______________________________________________ 
 fpc-devel maillist - fpc-devel@lists.freepascal.org [1] 
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel [2]"
target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


 

Links:
------
[1] mailto:fpc-devel@lists.freepascal.org
[2] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to