From c465284ddbd47a35e2a5ce03fef61b5914c254d4 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 31 Mar 2014 20:18:52 +1000 Subject: Clean up that last commit. --- ClientHamr/GuiLua/skang.lua | 8 ++++---- 1 file 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-) thingasm('foo', 'help text) -- In this case the surrounding Lua environment becomes the module of foo. -- If the first argument (or first in the table) is a string, then it's this form. -- All others include the module as the first argument, which would be a table. - foo:('bar', 'some help', types='table') -- And now foo is the module. - foo.bar:{'baz', types='Stuff'} -- thingasm({foo.bar, 'baz', ...}) - foo.bar.baz:{'field0'} -- thingasm({foo.bar.baz, 'field0'}) - foo.bar.baz:{'field1'} + foo('bar', 'some help', types='table') -- ___call(foo, 'bar', ...) And now foo is the module. + foo.bar{'baz', types='Stuff'} -- thingasm({foo.bar, 'baz', ...}) + foo.bar.baz{'field0'} -- thingasm({foo.bar.baz, 'field0'}) + foo.bar.baz{'field1'} Widget - -- cgit v1.1