Permalink
Browse files

Fixed compile error in MainClass

  • Loading branch information...
1 parent 9d0b6b0 commit 3e773175d19687a04f57d5d0d394c92dd1eeac16 @dgrunwald committed Sep 2, 2010
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/arden/MainClass.java
View
8 src/arden/MainClass.java
@@ -35,8 +35,6 @@
import arden.compiler.CompiledMlm;
import arden.compiler.Compiler;
import arden.compiler.CompilerException;
-import arden.runtime.ArdenNumber;
-import arden.runtime.ArdenString;
import arden.runtime.ArdenValue;
import arden.runtime.ExecutionContext;
@@ -72,9 +70,9 @@ public void write(ArdenValue message, String destination) {
}
};
try {
- ArdenValue result = mlm.run(context, null);
- if (result != null)
- System.out.println("Return Value: " + result.toString());
+ ArdenValue[] result = mlm.run(context, null);
+ if (result != null && result.length == 1)
+ System.out.println("Return Value: " + result[0].toString());
} catch (InvocationTargetException e) {
e.printStackTrace();
}

0 comments on commit 3e77317

Please sign in to comment.