Skip to content

[Deprecated] AviatorScript 5.0.0-RC2

Compare
Choose a tag to compare
@killme2008 killme2008 released this 22 Apr 13:17
· 384 commits to master since this release

Main changes:

  • new Class(args) statement to create an instance of special class with arguments, for example:
let s = new String("test");
p(type(s)); ## print string
  • throw exception statement to throw an exception.
  • try/catch/finally statement to handle exceptions, for example:
   try {
       throw "an exception";
   } catch(e) {
       pst(e);
   } finally {
       p("finally");
   }
  • Fixed #228 can't run on IBM jdk.
  • Fixed Opitons.MAX_LOOP_COUNT.
  • Make seq.get to support List.
  • AviatorEvaluatorInstance#aliasFunction(name, alias) to alias a function.
  • New function pst(e) to print stacktrace of an exception.
  • Alias function println to p.
  • Every statement has a value:
let a = if(true) {
   2
};

p(a);  ## print 2
  • Breaking changes:
    • Checking equality of two different types x == y or x !=y doesn't throw an exception any more but returns false.