[Deprecated] AviatorScript 5.0.0-RC2
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 supportList
. AviatorEvaluatorInstance#aliasFunction(name, alias)
to alias a function.- New function
pst(e)
to print stacktrace of an exception. - Alias function
println
top
. - Every statement has a value:
let a = if(true) {
2
};
p(a); ## print 2
- Breaking changes:
- Checking equality of two different types
x == y
orx !=y
doesn't throw an exception any more but returns false.
- Checking equality of two different types