[fpc-devel] Debugging Loop Unroll Optimization

J. Gareth Moreton gareth at moreton-family.com
Fri May 18 16:06:53 CEST 2018


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 listbox at martoks-place.de sent:
 > Sorry to waste your time on this. 
 Don't worry, I like investigating this stuff. I don't like the
 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. 


 fpc-devel maillist - fpc-devel at lists.freepascal.org [1] 
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel [2]"


[1] mailto:fpc-devel at lists.freepascal.org
[2] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180518/2e2a3f19/attachment.html>

More information about the fpc-devel mailing list