diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/test.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index fff9023..60d4200 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua | |||
@@ -127,7 +127,7 @@ skang.thingasm{stuff.t, 'c', 'Another sub stufflet'} | |||
127 | skang.thingasm{stuff, 's', 'A Stuff', types='table'} | 127 | skang.thingasm{stuff, 's', 'A Stuff', types='table'} |
128 | stuff.s{'sa,a', 'A stufflet in a Stuff'} | 128 | stuff.s{'sa,a', 'A stufflet in a Stuff'} |
129 | stuff.s{'sb,b', 'Another stufflet in a Stuff'} | 129 | stuff.s{'sb,b', 'Another stufflet in a Stuff'} |
130 | skang.thingasm{stuff, 'S', 'A database table of Stuff', types='Stuff'} | 130 | skang.thingasm{stuff, 'S', 'A database table of Stuff', types='Keyed'} |
131 | stuff.S{'field0', 'The first field of the db table.'} | 131 | stuff.S{'field0', 'The first field of the db table.'} |
132 | stuff.S{'field1', 'The second field of the db table.'} | 132 | stuff.S{'field1', 'The second field of the db table.'} |
133 | 133 | ||
@@ -166,7 +166,7 @@ stuff.s = {a=8, sb='9'} | |||
166 | stuff.s.sb = 44 | 166 | stuff.s.sb = 44 |
167 | print('') | 167 | print('') |
168 | --stuff.S.record0 = {} | 168 | --stuff.S.record0 = {} |
169 | stuff.S['record0'] = {field0='0', field1='zero'} | 169 | stuff.S['record0'] = {field0=0, field1='zero'} |
170 | stuff.S['record1'] = {field0='1', field1='one'} | 170 | stuff.S['record1'] = {field0='1', field1='one'} |
171 | -- TODO - adding a third makes isValid() crash. | 171 | -- TODO - adding a third makes isValid() crash. |
172 | --stuff.S['record2'] = {field0='2', field1='two'} | 172 | --stuff.S['record2'] = {field0='2', field1='two'} |
@@ -216,3 +216,5 @@ print(stuff.S['record1'].field1) | |||
216 | --skang.printTableStart(getmetatable(stuff.s), '', 'stuff.s metatable') | 216 | --skang.printTableStart(getmetatable(stuff.s), '', 'stuff.s metatable') |
217 | --skang.printTableStart(getmetatable(stuff), '', 'stuff metatable') | 217 | --skang.printTableStart(getmetatable(stuff), '', 'stuff metatable') |
218 | --skang.printTableStart(getmetatable(stuff.S), '', 'stuff.S metatable') | 218 | --skang.printTableStart(getmetatable(stuff.S), '', 'stuff.S metatable') |
219 | |||
220 | --skang.printTableStart(getmetatable(test), '', 'test metatable') | ||