aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-12 18:04:18 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-12 18:04:41 -0700
commit3c510e4ee5027aa5191e994bdf0a080a32a4b082 (patch)
treeb8d740f6ce0e263faa92967a63d16af07f3d45e7 /core/operators.nom
parentb5fb8933af283d2b873a03ded085e8b69f374e81 (diff)
Lots of optimizations and simplifications, especially towards getting
better performance on luajit.
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/operators.nom b/core/operators.nom
index 4ec8ff1..555a636 100644
--- a/core/operators.nom
+++ b/core/operators.nom
@@ -160,8 +160,7 @@ immediately
# Unary operators
compile [- %] to: Lua value "(- \(% as lua expr))"
compile [not %] to: Lua value "(not \(% as lua expr))"
- # Using custom "len()" instead of Lua's "#" operator for compatibility with luajit.
- compile [length of %list] to: Lua value "len(\(%list as lua expr))"
+ compile [length of %list] to: Lua value "(#\(%list as lua expr))"
# Update operators
immediately