aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ClientHamr/GuiLua/skang.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index d4b3616..a8a75ae 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -608,6 +608,13 @@ end
608 608
609local Mum = 609local Mum =
610{ 610{
611--[[ From an email by Mike Pall -
612"Important: create the metatable and its metamethods once and reuse
613the _same_ metatable for _every_ instance."
614
615This is for LuaJIT, he's the author, and concerns performance.
616]]
617
611__index = function (parent, key) 618__index = function (parent, key)
612 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. 619 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist.
613 620