Only evaluate stms once in the repl
Steps to reproduce:
{ printi(120); printc('\n'); }
1 + 1
Expected result:
The number 120
(followed by a LF) should be printed in the repl after step 1. After step 2 the evaluated expression should be displayed (in this case 2
).
Actual result:
> { printi(120); printc('\n'); }
120
> 1 + 1
120
int res0 = 2;
>
The 120
is printed after step 2.
Description:
Statements (with a few exceptions: new
and del
) are evaluated each time a statement or an expression is evaluated in the repl.