Conditionals do not end if the condition is not taken
tobiasheineken opened this issue · 0 comments
tobiasheineken commented
Example program:
1x0f1o
2x0v1a
3x0v0l0e
Expected behavior:
Interpreter error (e
is a conditional operator and cannot be called from opcode 0, and the interpreter has to go back to opcode 0 after l
)
Actual behavior:
Runs without printing anything
Note:
While the ability to use multiple conditionals for one check seems kind of useful - for example to implement an if-then-else construct - it doesn't work either, because as soon as the condition is met, the opcode switches back to 0, resulting in a runtime exception when encountering the next conditional instruction