Wordle comparison: Difference between revisions
m
→{{header|Phix}}: exp[anded a bit on the limit clobbering
(Added C) |
m (→{{header|Phix}}: exp[anded a bit on the limit clobbering) |
||
Line 192:
=={{header|Phix}}==
<small>Aside: You may be mildly surprised to see the 2nd for loop limit being clobbered like this, but you ''cannot'' change the limit mid-loop in Phix (an explicit exit would be far clearer) and hence you ''can'' do this.<
In practice the for loop takes a private copy of the value of the limit, be that n or more significantly say length(s), and ignores any changes you might subsequently make to it.</small>
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
|