Make fast operators the default.

This commit is contained in:
Stephen Chung
2022-09-03 22:07:36 +08:00
parent defdc2a5bc
commit 702bb9030a
11 changed files with 73 additions and 56 deletions

View File

@@ -989,7 +989,7 @@ impl Engine {
args_expr: &[Expr],
hashes: FnCallHashes,
capture_scope: bool,
is_standard_operator: bool,
is_operator: bool,
pos: Position,
level: usize,
) -> RhaiResult {
@@ -1002,7 +1002,7 @@ impl Engine {
let redirected; // Handle call() - Redirect function call
match name {
_ if is_standard_operator => (),
_ if is_operator => (),
// Handle call()
KEYWORD_FN_PTR_CALL if total_args >= 1 => {