As of yesterday, the script engine supports C-style conditional expressions, like
While implementing conditional expressions, I noticed that assignments, when used as expressions, weren't giving the right value, and compound assignments (like +=) weren't pushing any expression value onto the stack at all, and confusing the compiler in the process. So they are fixed now too.
Code:
int a = foo ? bar : baz;
While implementing conditional expressions, I noticed that assignments, when used as expressions, weren't giving the right value, and compound assignments (like +=) weren't pushing any expression value onto the stack at all, and confusing the compiler in the process. So they are fixed now too.