Redefining Operator Precedence
sub newScopeExpression {
proto sub infix:<+>(\a, \b) is tighter(&infix:<*>) { * }
multi sub infix:<+>(\a, \b) {
say "A: { a } / B: { b }";
use nqp;
nqp::add_I(a, b, Int);
}
say 2 + 2 * 4;
}
newScopeExpressionINFO