local testTbl = {}io
function testTbl:test(aaa) aaa = 2222 endfunction
local x = 1 testTbl:test(x) print(x) ---輸出1test
function testTbl:chval( tbl ) tbl["test"] = "test" end
local tbl = {} testTbl:chval(tbl)
for k,v in pairs(tbl) do print(k,v) --輸出 test test end