aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-31 20:18:52 +1000
committerDavid Walter Seikel2014-03-31 20:18:52 +1000
commitc465284ddbd47a35e2a5ce03fef61b5914c254d4 (patch)
tree21d7c2e13c55a9735a052a4ab52504c934cdb2a8
parentFinally found a decent use for __call. lol (diff)
downloadSledjHamr-c465284ddbd47a35e2a5ce03fef61b5914c254d4.zip
SledjHamr-c465284ddbd47a35e2a5ce03fef61b5914c254d4.tar.gz
SledjHamr-c465284ddbd47a35e2a5ce03fef61b5914c254d4.tar.bz2
SledjHamr-c465284ddbd47a35e2a5ce03fef61b5914c254d4.tar.xz
Clean up that last commit.
-rw-r--r--ClientHamr/GuiLua/skang.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index da89792..7d9ca41 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -317,10 +317,10 @@ Maybe I can rename this to thingasm? B-)
317 thingasm('foo', 'help text) -- In this case the surrounding Lua environment becomes the module of foo. 317 thingasm('foo', 'help text) -- In this case the surrounding Lua environment becomes the module of foo.
318 -- If the first argument (or first in the table) is a string, then it's this form. 318 -- If the first argument (or first in the table) is a string, then it's this form.
319 -- All others include the module as the first argument, which would be a table. 319 -- All others include the module as the first argument, which would be a table.
320 foo:('bar', 'some help', types='table') -- And now foo is the module. 320 foo('bar', 'some help', types='table') -- ___call(foo, 'bar', ...) And now foo is the module.
321 foo.bar:{'baz', types='Stuff'} -- thingasm({foo.bar, 'baz', ...}) 321 foo.bar{'baz', types='Stuff'} -- thingasm({foo.bar, 'baz', ...})
322 foo.bar.baz:{'field0'} -- thingasm({foo.bar.baz, 'field0'}) 322 foo.bar.baz{'field0'} -- thingasm({foo.bar.baz, 'field0'})
323 foo.bar.baz:{'field1'} 323 foo.bar.baz{'field1'}
324 324
325 325
326 Widget - 326 Widget -