creating:actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
creating:actions [2025/11/03 23:05] – Use Java's instanceof-cast syntax ahelwercreating:actions [2025/11/03 23:08] (current) – One more instanceof-cast ahelwer
Line 472: Line 472:
  
     if (replMode && statements.size() == 1     if (replMode && statements.size() == 1
-        && statements.get(0) instanceof Stmt.Print) { +        && statements.get(0) instanceof Stmt.Print action) { 
-      tryStep((Stmt.Print)statements.get(0));+      tryStep(action);
     } else {     } else {
       interpreter.interpret(statements);       interpreter.interpret(statements);
  • creating/actions.txt
  • Last modified: 2025/11/03 23:08
  • by ahelwer