wiremod/wire

do-while loop behaviour changed with new compiler

Closed this issue · 0 comments

Describe the bug
Do-while loops behave like normal while loops instead of checking the conditional after running the loop code first.

To Reproduce
Run code:
I = 1 do { print("HI") I = 0 } while(I != 1)
No printout. While condition is checked before the do-block is executed.

Expected behavior
Previously code would loop forever as the while condition would be checked after running the do-block.