aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua17
1 files changed, 12 insertions, 5 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 8a882d2..53ba99b 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -8,6 +8,7 @@ C will let us -
8 Network stuff. No need to look at Lua socket stuff, we have Ecore_Con. 8 Network stuff. No need to look at Lua socket stuff, we have Ecore_Con.
9 Database stuff. No need to look at Lua SQL stuff, we have esskyuehl. Maybe. 9 Database stuff. No need to look at Lua SQL stuff, we have esskyuehl. Maybe.
10 10
11 Actually, we could have the best of both worlds, since it is currently a C / Lua hybrid. B-)
11]] 12]]
12 13
13 14
@@ -669,11 +670,6 @@ end
669local Mum = 670local Mum =
670{ 671{
671--[[ From an email by Mike Pall - 672--[[ From an email by Mike Pall -
672"Important: create the metatable and its metamethods once and reuse
673the _same_ metatable for _every_ instance."
674
675This is for LuaJIT, he's the author, and concerns performance.
676]]
677 673
678__index = function (parent, key) 674__index = function (parent, key)
679 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. 675 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist.
@@ -753,6 +749,14 @@ end,
753 749
754newMum = function () 750newMum = function ()
755 local result = {} 751 local result = {}
752--[[ From an email by Mike Pall -
753"Important: create the metatable and its metamethods once and reuse
754the _same_ metatable for _every_ instance."
755
756This is for LuaJIT, he's the author, and concerns performance.
757
758TODO - Which is the exact opposite of what we are doing. Perhaps we can fix that?
759]]
756 for k, v in pairs(Mum) do 760 for k, v in pairs(Mum) do
757 result[k] = v 761 result[k] = v
758 end 762 end
@@ -1533,6 +1537,9 @@ Alternate plan -
1533 button:bottom(-10):right(5) -- 10 pixels below the bottom of button, 5 pixels to the right of the right edge of button. 1537 button:bottom(-10):right(5) -- 10 pixels below the bottom of button, 5 pixels to the right of the right edge of button.
1534 button:width("12") -- 12 characters longer than the width of button. 1538 button:width("12") -- 12 characters longer than the width of button.
1535 1539
1540 But then how do we store that so that things move when the thing they are
1541 relative to moves?
1542
1536 1543
1537 Squeal - 1544 Squeal -
1538 Squeal was the database driver interface for SquealStuff, the database 1545 Squeal was the database driver interface for SquealStuff, the database