Took the time and tested, how exactly continue and break works with labels at the moment. Outside conditions and cycles they work as expected. In do and for cycles (where continue and break are expected) "continue/break label" works like simple "continue/break", that means something like this will create infinite loop in both 0.10.1 and latest beta:
Code: Select all
math COUNT = 2
do
print "%COUNT%"
continue NEXT1
math COUNT - 1
while COUNT > 0
label NEXT1
As for if condition (where continue and break are not expected), "continue label" works as expected in 0.10.1 and creates infinite loop in latest beta:
Code: Select all
math CHECK = 1
if CHECK = 1
continue NEXT1
endif
print "Here"
label NEXT1
print "There"
Despite the feature is being experimental, I think it's clearly a bug somewhere and current behavior doesn't match with explained in papers when cycles are considered.
And about string operators descriptions, I can now explain, why latest one is more confusing. Let's take "& strchr" - in old version there is description for it "first occurrence" and clear example with operands and result. In the new version it's just result1, result2, result3 - that means you should scroll up to see operands - and no description, that means you should guess, what current operator is actually doing.
For example, if I put something like this in a documentation, would you understand, how # operator works:
[# - convertstr
"CD" # "FF" = "FFAB"]