From 860de89154bd170936818a77392058352a00d83c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 29 Mar 2014 16:29:11 +1000 Subject: Implement multiple Thing copies. --- ClientHamr/GuiLua/test.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ClientHamr/GuiLua/test.lua') diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua index d566354..2f93c94 100644 --- a/ClientHamr/GuiLua/test.lua +++ b/ClientHamr/GuiLua/test.lua @@ -48,6 +48,7 @@ end local skang = require 'skang' local test = require 'test' local test_c = require 'test_c' +local copy_test = skang.new(test, 'copy') print('End ' .. test.bar .. ' ' .. test.VERSION .. ' ' .. skang.things.ffunc.help .. ' ->> ' .. skang.things.f.action) print('foo = ' .. test.foo .. ' ->> ' .. skang.things.foo.help) @@ -59,6 +60,10 @@ print('') test.f = 42 print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) +print('copy_f is now ' .. copy_test.fooble .. ' ' .. copy_test.f) +copy_test.f = 24 +print('f is now ' .. test.fooble .. ' ' .. test.f .. ' ' .. skang.things.f.help .. ' ' .. skang.things.fooble.help) +print('copy_f is now ' .. copy_test.fooble .. ' ' .. copy_test.f) test.f = nil print('f is now ' .. test.fooble .. ' ' .. test.f) test.fooble = 42 -- cgit v1.1